-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-0-hightopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctlytopic-usabilitytopic-variable-scope
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"
m-aciek
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codepriority-0-hightopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctlytopic-usabilitytopic-variable-scope