-
Notifications
You must be signed in to change notification settings - Fork 23
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
Y041 is not compatible with mypy 0.990 #299
Comments
Actually mypy allows type promotions in subtyping so |
@ilevkivskyi thanks. I adjusted the code |
Thanks for opening the issue! Let's use python/mypy#14030 for discussing this problem for now until we've reached an agreement on what to do; not sure it's helpful to have discussion split across 3 repos. |
## Summary Implements PYI041 from flake8-pyi. See [original code](https://github.com/PyCQA/flake8-pyi/blob/2a86db8271dc500247a8a69419536240334731cf/pyi.py#L1283). This check only applies to function parameters in order to avoid issues with mypy. See PyCQA/flake8-pyi#299. ref: #848 ## Test Plan Snapshots, manual runs of flake8.
## Summary Implements PYI041 from flake8-pyi. See [original code](https://github.com/PyCQA/flake8-pyi/blob/2a86db8271dc500247a8a69419536240334731cf/pyi.py#L1283). This check only applies to function parameters in order to avoid issues with mypy. See PyCQA/flake8-pyi#299. ref: astral-sh#848 ## Test Plan Snapshots, manual runs of flake8.
## Summary Implements PYI041 from flake8-pyi. See [original code](https://github.com/PyCQA/flake8-pyi/blob/2a86db8271dc500247a8a69419536240334731cf/pyi.py#L1283). This check only applies to function parameters in order to avoid issues with mypy. See PyCQA/flake8-pyi#299. ref: #848 ## Test Plan Snapshots, manual runs of flake8.
With mypy 0.990 type promotions was changed.
Before
After
Not sure what to do with this check, but just raining attention.
See python/mypy#14030 and python/typeshed#9130
The text was updated successfully, but these errors were encountered: