Skip to content

Time to remove typing.no_type_check_decorator #139299

@sobolevn

Description

@sobolevn

Feature or enhancement

It was deprecated in 3.13 and scheduled for removal in 3.15

cpython/Lib/typing.py

Lines 2613 to 2627 in 7016044

def no_type_check_decorator(decorator):
"""Decorator to give another decorator the @no_type_check effect.
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)
func = no_type_check(func)
return func
return wrapped_decorator

I will send a PR to remove it.

Metadata

Metadata

Assignees

Labels

3.15new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions