The [`no_type_check_decorator`](https://docs.python.org/3/library/typing.html#typing.no_type_check_decorator) is supposed to let you give the effect of `no_type_check` to other decorators. pytype doesn't appear to understand it: ```python from typing import no_type_check_decorator @no_type_check_decorator def test(cls): return cls @test class Foo: x: 5 ``` Gives: ``` File "/tmp/type_test3.py", line 15, in Foo: Invalid type annotation '5' for x [invalid-annotation] Not a type ``` [mypy is also currently lacking support](https://github.com/python/mypy/issues/6583), they discuss it probably needing special case support directly in the checker.
The
no_type_check_decoratoris supposed to let you give the effect ofno_type_checkto other decorators. pytype doesn't appear to understand it:Gives:
mypy is also currently lacking support, they discuss it probably needing special case support directly in the checker.