Skip to content

Time to remove typing.no_type_check_decorator #139299

Closed as duplicate
Closed as duplicate

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.

Activity

  1. self-assigned this
    on Sep 24, 2025
  2. added
    type-feature
    stdlib
    3.15
    on Sep 24, 2025
  3. sobolevn commented on Sep 24, 2025

    @sobolevn
    MemberAuthor

    In my defence I can say that for some reason it does not show up in search:

    Image

    😅

    Thanks! I completely forgot about my own issue.

  4. AlexWaygood commented on Sep 24, 2025

    @AlexWaygood
    Member

    Hehe, very easily done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.15stdlibtopic-typingtype-feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions