Closed
Description
For example:
class A(object):
def float(self):
# type: () -> float
return 1.0
gives:
mypy -v .
LOG: Mypy version 0.521
LOG: Metadata not found for test
LOG: Parsing ./test.py (test)
LOG: Processing SCC singleton (test) as inherently stale with stale deps (builtins)
LOG: No fresh SCCs left in queue
LOG: Build finished in 0.862 seconds with 10 modules, 2071 types, and 1 errors
test.py:3: error: Invalid type "test.A.float"