-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PEP 728: Incorporate feedback since last revision #4380
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
Conversation
- Mention indexed accesses and assignments with arbitrary keys, per Carl's feedback. - Prepare for submission by clearing the "open issues" sections, with edits when needed. - Include a reference to a prior discussion on `@final` addressing Victorien feedback (https://discuss.python.org/t/pep-728-typeddict-with-typed-extra-items/45443/138). - Update reference implementations. Signed-off-by: Zixuan James Li <[email protected]>
Thanks for addressing part of my feedback. Regarding my other points:
I'll try to get confirmation about this but it's maybe not worth being mentioned in the PEP.
I'm not sure how this could be clarified, but it does look confusing. It might be related to my first point though, as the playground example uses "simple" assignments. |
Signed-off-by: Zixuan James Li <[email protected]>
Thanks for the reviews and followups! Pushed a new revision. Re: @Viicos follow-ups I think the special case you mentioned (also discussed in this section) is a result of TypedDicts following the existing structural assignabillity rules. This section on The intention of having
I think we can also mention that |
Noticed a small typo : Line 728 in 95793de
Also, isn't it the same thing mentioned twice? Lines 206 to 208 in 95793de
Lines 236 to 238 in 95793de
|
Also comments from discussion thread: https://discuss.python.org/t/pep-728-typeddict-with-typed-extra-items/45443/148
Thanks! Pushed another update to address @Andrej730's comments. |
Thanks! I just found that this has already been submitted to the Typing Council (python/typing-council#22); I'll ping the other members so we can finally come to a decision. |
Mention indexed accesses and assignments with arbitrary keys, per Carl's feedback.
Prepare for submission by clearing the "open issues" sections, with edits when needed.
Include a reference to a prior discussion on
@final
addressing Victorien feedback (https://discuss.python.org/t/pep-728-typeddict-with-typed-extra-items/45443/138).Update reference implementations.
📚 Documentation preview 📚: https://pep-previews--4380.org.readthedocs.build/