PEP 728: Incorporate feedback since last revision#4380
PEP 728: Incorporate feedback since last revision#4380JelleZijlstra merged 3 commits intopython:mainfrom
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 <p359101898@gmail.com>
|
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 <p359101898@gmail.com>
|
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 |
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
@finaladdressing 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/