-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support total=False for protocols #5504
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
Comments
Supporting PEP 655 PEP 544 currently states about this:
|
Related discussion in |
This requires a PEP or a typing council decision, so closing this for now. The issue will be tracked in the python/typing repository. |
I have heard few requests to allow this:
with exactly the same semantics as for
TypedDicts
(including subclassing so that only part of members can be optional).This is quite straightforward to implement. I am just leaving this here so we will not forget about this feature request.
The text was updated successfully, but these errors were encountered: