summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-07-13 13:30:35 (GMT)
committerGitHub <noreply@github.com>2023-07-13 13:30:35 (GMT)
commit32718f908cc92c474fd968912368b8a4500bd055 (patch)
tree5268ef57fb4f0e6c849eb1c2a66cc551f3102a83 /Lib/typing.py
parent4b4a5b70aa8d47b1e2a0582b741c31b786da762a (diff)
downloadcpython-32718f908cc92c474fd968912368b8a4500bd055.zip
cpython-32718f908cc92c474fd968912368b8a4500bd055.tar.gz
cpython-32718f908cc92c474fd968912368b8a4500bd055.tar.bz2
gh-106309: Deprecate typing.no_type_check_decorator (#106312)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 9187b74..387b4c5 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -2395,6 +2395,8 @@ def no_type_check_decorator(decorator):
This wraps the decorator with something that wraps the decorated
function in @no_type_check.
"""
+ import warnings
+ warnings._deprecated("typing.no_type_check_decorator", remove=(3, 15))
@functools.wraps(decorator)
def wrapped_decorator(*args, **kwds):
func = decorator(*args, **kwds)