-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
stubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module
Description
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
Labels
stubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module