Remove incorrect typing reference

This commit is contained in:
mio
2025-02-15 20:12:48 +08:00
parent a4d8c302a6
commit a2d666c8e7

View File

@@ -643,7 +643,7 @@ class Uc(RegStateManager):
Every time the decorated function runs, it will emit
a "deprecation" warning."""
@functools.wraps(func)
def new_func(*args: Uc.__pT.args, **kwargs: Uc.__pT.kwargs):
def new_func(*args: __pT.args, **kwargs: __pT.kwargs):
warnings.simplefilter('always', DeprecationWarning) # turn off filter
warnings.warn("Call to a deprecated function {}. {}".format(func.__name__, msg),
category=DeprecationWarning,