aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/utils/function.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-11-09 23:22:54 +0000
committerGravatar Joe Banks <[email protected]>2025-11-09 23:22:54 +0000
commitfe369f9cb90a6a213af04004710fff4cd46aca72 (patch)
tree824d9fe6f1b9efc570f29c9b2f34ace2d9a3a5c3 /pydis_core/utils/function.py
parentUpdate ruff version (diff)
Updates for new Ruff version
Diffstat (limited to 'pydis_core/utils/function.py')
-rw-r--r--pydis_core/utils/function.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_core/utils/function.py b/pydis_core/utils/function.py
index 5c0d7ba4..2d2b7923 100644
--- a/pydis_core/utils/function.py
+++ b/pydis_core/utils/function.py
@@ -138,8 +138,8 @@ def update_wrapper_globals(
If ``wrapper`` and ``wrapped`` share a global name that's also used in ``wrapped``\'s typehints,
and is not in ``ignored_conflict_names``.
"""
- wrapped = typing.cast(types.FunctionType, wrapped)
- wrapper = typing.cast(types.FunctionType, wrapper)
+ wrapped = typing.cast("types.FunctionType", wrapped)
+ wrapper = typing.cast("types.FunctionType", wrapper)
annotation_global_names = (
ann.split(".", maxsplit=1)[0] for ann in wrapped.__annotations__.values() if isinstance(ann, str)