Skip to content

Commit bc89fe9

Browse files
authored
chore: fix pylint message deprecated-typing-alias (#887)
Signed-off-by: Jens Troeger <[email protected]>
1 parent aebf879 commit bc89fe9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ load-plugins = [
215215
"pylint.extensions.for_any_all",
216216
"pylint.extensions.overlapping_exceptions",
217217
"pylint.extensions.set_membership",
218+
"pylint.extensions.typing",
218219
]
219220
disable = [
220221
"fixme",

src/macaron/database/database_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022 - 2024, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

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

72-
def __init__(self, function: typing.Callable[_P, _T]) -> None:
73+
def __init__(self, function: collections.abc.Callable[_P, _T]) -> None:
7374
functools.update_wrapper(self, function)
7475
self.function = function
7576

0 commit comments

Comments
 (0)