Skip to content

chore: fix pylint message deprecated-typing-alias #887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading