Skip to content

Fast parser associates wrong column number with calls to member functions #2749

@ddfisher

Description

@ddfisher

For example:

class A:
    def f(self, x): # type: (int) -> str
        pass
A().f('') # E:0: Argument 1 to "f" of "A" has incompatible type "str"; expected "int"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions