diff --git a/imperative/python/megengine/utils/deprecation.py b/imperative/python/megengine/utils/deprecation.py index f9ed8bdf5660969acecf5285c7cf50949f4dd736..7978a1b33767727fdae77493bda1a33f939230cd 100644 --- a/imperative/python/megengine/utils/deprecation.py +++ b/imperative/python/megengine/utils/deprecation.py @@ -33,6 +33,7 @@ def deprecated_func(version, origin, name, tbd): ) return func(*args, **kwargs) + wrapper.__deprecated__ = True return wrapper @@ -57,6 +58,7 @@ def deprecated_kwargs_default(version, kwargs_name, kwargs_pos): ) return func(*args, **kwargs) + wrapper.__deprecated__ = True return wrapper return deprecated