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

no error when property has multiple getters/setters #12894

Open
DetachHead opened this issue May 28, 2022 · 1 comment
Open

no error when property has multiple getters/setters #12894

DetachHead opened this issue May 28, 2022 · 1 comment
Labels
feature topic-descriptors Properties, class vs. instance attributes

Comments

@DetachHead DetachHead added the bug mypy got something wrong label May 28, 2022
@DetachHead
Copy link
Contributor Author

same with setters

class A:
    @property
    def foo(self) -> int:
        ...
        
    @foo.setter
    def foo(self, value: int) -> None:
        ...
        
    @foo.setter  # no error
    def foo(self, value: int) -> None:
        ...


a = A()

@DetachHead DetachHead changed the title no error when property has multiple getters no error when property has multiple getters/setters May 28, 2022
@AlexWaygood AlexWaygood added the topic-descriptors Properties, class vs. instance attributes label May 28, 2022
@AlexWaygood AlexWaygood added feature and removed bug mypy got something wrong labels Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature topic-descriptors Properties, class vs. instance attributes
Projects
None yet
Development

No branches or pull requests

2 participants