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

basedmypy doesnt understand that overloads are named #771

Open
DetachHead opened this issue Oct 9, 2024 · 0 comments
Open

basedmypy doesnt understand that overloads are named #771

DetachHead opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DetachHead
Copy link
Collaborator

DetachHead commented Oct 9, 2024

from typing import overload

class Foo:
    @overload
    def f(self, x: int): ...
    @overload
    def f(self, x: str): ...
    def f(self, x: object): ...


Foo().f.__name__
@DetachHead DetachHead added the bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants