api(deprecation): preserve old class's signature and docstring
@@ -9,7 +9,7 @@ def warn_deprecate_class(new_class):
:return: a function that, when called, acts as if it is a class constructor
:rtype: callable
"""
-
+ @functools.wraps(new_class)
def old_class_getter(*args, **kwargs):
warnings.warn(f"This class name is deprecated, use {new_class} instead", FutureWarning)
return new_class(*args, **kwargs)
