Skip to content

Commit 2c0b399

Browse files
committed
Address review comments
1 parent 57e01d8 commit 2c0b399

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/warnings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,11 +634,9 @@ def __init_subclass__(*args, **kwargs):
634634
warn(msg, category=category, stacklevel=stacklevel + 1)
635635
return original_init_subclass(*args, **kwargs)
636636

637-
arg.__init_subclass__ = __init_subclass__
638-
639-
__init_subclass__.__module__ = arg.__module__
640637
arg.__deprecated__ = __new__.__deprecated__ = msg
641638
__init_subclass__.__deprecated__ = msg
639+
__init_subclass__.__module__ = arg.__module__
642640
return arg
643641
elif callable(arg):
644642
import functools

0 commit comments

Comments
 (0)