KEMBAR78
Fix strict optional handling in attrs plugin by ilevkivskyi · Pull Request #17451 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #13794

Fix is trivial (but unlike for dataclasses, the calls to type ops are scattered, so I simply put the whole hook inside a single with).

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi
Copy link
Member Author

Python 3.8 failure on Windows, looks like a flake.

@ilevkivskyi ilevkivskyi merged commit 177c8ee into python:master Jun 29, 2024
@ilevkivskyi ilevkivskyi deleted the fix-attrs-opt branch June 29, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

attrs: Inheritance breaks mypy type checking with optional attributes if Generics are involved

1 participant