Skip to content

Commit

Permalink
chore: fix pylint message deprecated-typing-alias (#887)
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Troeger <[email protected]>
  • Loading branch information
jenstroeger authored Oct 2, 2024
1 parent aebf879 commit bc89fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ load-plugins = [
"pylint.extensions.for_any_all",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
]
disable = [
"fixme",
Expand Down
5 changes: 3 additions & 2 deletions src/macaron/database/database_manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022 - 2024, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.

"""This DatabaseManager module handles the sqlite database connection."""
import collections.abc
import functools
import logging
import os
Expand Down Expand Up @@ -69,7 +70,7 @@ def create_tables(self) -> None:
class cache_return(typing.Generic[_T, _P]): # pylint: disable=invalid-name # noqa: N801
"""The decorator to create a singleton DB session."""

def __init__(self, function: typing.Callable[_P, _T]) -> None:
def __init__(self, function: collections.abc.Callable[_P, _T]) -> None:
functools.update_wrapper(self, function)
self.function = function

Expand Down

0 comments on commit bc89fe9

Please sign in to comment.