8000 Name resolution in mypy doesn't match Python · Issue #3775 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
Name resolution in mypy doesn't match Python #3775
Closed
@gaborbernat

Description

@gaborbernat

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"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0