diff options
author | 2024-02-19 21:27:16 +0000 | |
---|---|---|
committer | 2024-03-04 12:35:02 +0000 | |
commit | 9c8fbd74b1d922f241c926cc26d609d0d13ae1c5 (patch) | |
tree | 0c2551275318d3ee0d64e4874121d54425ad4e4b /pydis_core/utils/function.py | |
parent | ruff lint fix: Add explicit namespaces for packages (diff) |
ruff lint fix: Run remaining auto-fixable rules
Diffstat (limited to 'pydis_core/utils/function.py')
-rw-r--r-- | pydis_core/utils/function.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_core/utils/function.py b/pydis_core/utils/function.py index 911f660d..0df3a953 100644 --- a/pydis_core/utils/function.py +++ b/pydis_core/utils/function.py @@ -6,7 +6,6 @@ import functools import inspect import types import typing -from collections.abc import Callable, Sequence, Set __all__ = [ "GlobalNameConflictError", @@ -19,6 +18,7 @@ __all__ = [ if typing.TYPE_CHECKING: + from collections.abc import Callable, Sequence, Set as AbstractSet _P = typing.ParamSpec("_P") _R = typing.TypeVar("_R") @@ -114,7 +114,7 @@ def update_wrapper_globals( wrapper: Callable[_P, _R], wrapped: Callable[_P, _R], *, - ignored_conflict_names: Set[str] = frozenset(), + ignored_conflict_names: AbstractSet[str] = frozenset(), ) -> Callable[_P, _R]: r""" Create a copy of ``wrapper``\, the copy's globals are updated with ``wrapped``\'s globals. @@ -174,7 +174,7 @@ def command_wraps( assigned: Sequence[str] = functools.WRAPPER_ASSIGNMENTS, updated: Sequence[str] = functools.WRAPPER_UPDATES, *, - ignored_conflict_names: Set[str] = frozenset(), + ignored_conflict_names: AbstractSet[str] = frozenset(), ) -> Callable[[Callable[_P, _R]], Callable[_P, _R]]: r""" Update the decorated function to look like ``wrapped``\, and update globals for discord.py forwardref evaluation. |