Skip to content

typing.no_type_check_decorator is not stubbed in typeshed #2884

Closed
@lunixbochs

Description

@lunixbochs

https://docs.python.org/3/library/typing.html#typing.no_type_check_decorator

I assume this also needs mypy support, as no_type_check is hardcoded there, but including in typeshed feels like a prereq.

from typing import no_type_check, no_type_check_decorator

@no_type_check_decorator
def test(fn):
    return fn

@test
def blah(x: {'x': 1}):
    pass

@no_type_check
def blah2(x: {'x': 1}):
    pass
$ mypy notypecheck.py 
notypecheck.py:1: error: Module 'typing' has no attribute 'no_type_check_decorator'
notypecheck.py:8: error: Invalid type comment or annotation

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: incompleteAnnotations or sub-modules missing from an existing package or module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions