Skip to content

New parser deviates from old parser in edge cases with function type comments #21948

Description

@ilevkivskyi

This is a follow-up for #21823. Most notably we get a false negative in situations like this:

class A:
    def f(self):
        # type: () -> None
        def g(x):
            # type: () -> None  # Error not detected: signature has too few parameters
            pass

cc @JukkaL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions