-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
bug: Decorated property not supported #6384
Comments
Yes, we should just report an error instead of crashing. |
This crash no more occurs in master. Output:
|
Seems like this issue can be closed then? Those errors look correct. |
I think it's OK to do so. |
Hmm, so it is an error to use decorators with mypy? The offending code for my case:
|
@frispete mypy supports decorators in general, but there may be specific patterns that aren't supported. This issue is about a specific problem that led to a crash (not just a mypy error), which is fixed; if you have a different problem involving decorators, feel free to open a new issue. |
When running mypy on a file with the following content:
It will crash with following traceback:
I expected mypy to simply signal an error about reusing a method/property name.
Happening on both Ubuntu 18.04.1 LTS's apt install version and on latest version installed from GitHub. Python 3.6.7
The text was updated successfully, but these errors were encountered: