Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stub methods should not need type annotation for receiver parameter ("self") #22

Open
marcoeilers opened this issue Aug 25, 2017 · 1 comment

Comments

@marcoeilers
Copy link
Collaborator

No description provided.

@marcoeilers
Copy link
Collaborator Author

Hm. I tried this again, and I still think it doesn't work the way it should. IMO if ignore_fully_annotated_function is set to true, the following program should be accepted:

class A:
    def do_something(self) -> int:
        return "asd"

a = A()
b = a.do_something()

But currently, it's rejected. If I add the annotation self: A, it is accepted, because do_something is now recognized as fully annotated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants