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

Regression caused by #5565 #5573

Closed
ilevkivskyi opened this issue Sep 5, 2018 · 0 comments
Closed

Regression caused by #5565 #5573

ilevkivskyi opened this issue Sep 5, 2018 · 0 comments
Assignees
Labels
bug mypy got something wrong false-positive mypy gave an error on correct code priority-0-high

Comments

@ilevkivskyi
Copy link
Member

#5565 causes the following code to fail with Name 'x' already defined, while it is perfectly valid:

class C:
    def __init__(self, x: int) -> None:
        self.x = x
    @property
    def x(self) -> int: ...
    @x.setter
    def x(self, x: int) -> None: ...
@ilevkivskyi ilevkivskyi added bug mypy got something wrong priority-0-high false-positive mypy gave an error on correct code labels Sep 5, 2018
@ilevkivskyi ilevkivskyi self-assigned this Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong false-positive mypy gave an error on correct code priority-0-high
Projects
None yet
Development

No branches or pull requests

1 participant