[issue46677] TypedDict docs are incomplete

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks @CharliieZhao for the improved documentation! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46677] TypedDict docs are incomplete

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset b5140a5811aa35f4b488849fb55d84504732d135 by Charlie Zhao in branch '3.9': [3.9] bpo-46677: Add examples of inheritance and attributes to `TypedDict` docs. (GH-31349) (GH-31808)

[issue46677] TypedDict docs are incomplete

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 28f20a6613b9d9287848bb78369b881a72941a39 by Charlie Zhao in branch '3.10': [3.10] bpo-46677: Add examples of inheritance and attributes to `TypedDict` docs (GH-31349) (GH-31815)

[issue46677] TypedDict docs are incomplete

2022-03-10 Thread Charlie Zhao
Change by Charlie Zhao : -- pull_requests: +29913 pull_request: https://github.com/python/cpython/pull/31815 ___ Python tracker ___

[issue46677] TypedDict docs are incomplete

2022-03-10 Thread Charlie Zhao
Change by Charlie Zhao : -- pull_requests: +29907 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/31808 ___ Python tracker ___

[issue46677] TypedDict docs are incomplete

2022-03-10 Thread Alex Waygood
Change by Alex Waygood : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46677] TypedDict docs are incomplete

2022-03-10 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: (assigning to myself to remind myself to see the backports through) -- assignee: docs@python -> Jelle Zijlstra ___ Python tracker ___

[issue46677] TypedDict docs are incomplete

2022-03-10 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 8a207e0321db75f3342692905e342f1d5e1add54 by Charlie Zhao in branch 'main': bpo-46677: Add examples of inheritance and attributes to `TypedDict` docs (GH-31349) https://github.com/python/cpython/commit/8a207e0321db75f3342692905e342f1d5e1add54

[issue46677] TypedDict docs are incomplete

2022-02-14 Thread Charlie Zhao
Change by Charlie Zhao : -- keywords: +patch pull_requests: +29498 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31349 ___ Python tracker ___

[issue46677] TypedDict docs are incomplete

2022-02-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Please do submit a PR! Agree that more examples of inheritance and attributes would be useful. Note that we're about to deprecate the keyword argument syntax (issue46066). -- ___ Python tracker

[issue46677] TypedDict docs are incomplete

2022-02-11 Thread Charlie Zhao
Charlie Zhao added the comment: Indeed, if you use Python keywords or other invalid Python names as keys of TypedDict, we must use the equivalent forms as follows: ``` Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'in': str}) # OK Point2D = TypedDict('Point2D', x=int, y=int, in=str)

[issue46677] TypedDict docs are incomplete

2022-02-07 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : https://docs.python.org/3.10/library/typing.html#typing.TypedDict It says: > To allow using this feature with older versions of Python that do not support > PEP 526, TypedDict supports two additional equivalent syntactic forms But there is another reason