We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e01d8 commit 2c0b399Copy full SHA for 2c0b399
Lib/warnings.py
@@ -634,11 +634,9 @@ def __init_subclass__(*args, **kwargs):
634
warn(msg, category=category, stacklevel=stacklevel + 1)
635
return original_init_subclass(*args, **kwargs)
636
637
- arg.__init_subclass__ = __init_subclass__
638
-
639
- __init_subclass__.__module__ = arg.__module__
640
arg.__deprecated__ = __new__.__deprecated__ = msg
641
__init_subclass__.__deprecated__ = msg
+ __init_subclass__.__module__ = arg.__module__
642
return arg
643
elif callable(arg):
644
import functools
0 commit comments