-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
check_type does not check required fields when mixing required and non-required fields in TypedDict #101
Comments
How am I going to extract the information about |
I have no idea how that should be implemented 🙂 If it cannot be, maybe we could add a note to the documentation? |
Sounds reasonable. |
Note that this situation is addressed in Python 3.9 with dunder attributes for |
Sure. |
It seems the new patch was botched:
It's ignoring the |
I've submitted a fix against CPython: python/cpython#22736 If I add support for |
Hi, thanks for the awesome library! A recent fix for an issue (#94) added support for totality in
TypedDict
, thanks for that! I'm trying to mix required and non-required fields inTypedDict
as instructed in mypy documentation:This definition should make
name
andyear
required fields inMovie
.However,
check_type
does not seem to complain if those are missing:Any idea what might be wrong here? Thanks!
The text was updated successfully, but these errors were encountered: