Skip to content

Commit

Permalink
Revert the change
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Jan 21, 2025
1 parent 2c0b399 commit 0eaefef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ def __init_subclass__(*args, **kwargs):
warn(msg, category=category, stacklevel=stacklevel + 1)
return original_init_subclass(*args, **kwargs)

arg.__init_subclass__ = __init_subclass__

arg.__deprecated__ = __new__.__deprecated__ = msg
__init_subclass__.__deprecated__ = msg
__init_subclass__.__module__ = arg.__module__
Expand Down

0 comments on commit 0eaefef

Please sign in to comment.