From 0eaefef1ce75d9ea74622c42c1f295140b6e0c9d Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Tue, 21 Jan 2025 11:22:08 +0530 Subject: [PATCH] Revert the change --- Lib/warnings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/warnings.py b/Lib/warnings.py index 4082cdaeded834..9e74c25f853bfb 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -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__