Closed
Description
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