Repository navigation
Docs: fix generic class and comprehension examples - #160908
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the documentation-only corrections to the Python reference examples.
No open issues 🎉
What changed in this PR
This documentation-only PR corrects comprehension and generic class examples in the Python language reference.
Changes:
- Fixes set construction and insertion in the set-comprehension equivalent.
- Calls the correct helper in the dictionary-comprehension example.
- Corrects type-parameter ordering and explicitly declares the generic class parameter.
| File | Description |
|---|---|
Doc/reference/expressions.rst |
Corrects set and dictionary comprehension examples. |
Doc/reference/compound_stmts.rst |
Fixes type-parameter ordering and the generic Bag[T] declaration. |
Review effort: Balanced
Documentation build overview
|
|
Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @methane, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
GH-160940 is a backport of this pull request to the 3.15 branch. |
(cherry picked from commit 83fe630) Co-authored-by: Inada Naoki <[email protected]>
|
GH-160942 is a backport of this pull request to the 3.14 branch. |
(cherry picked from commit 83fe630)
No description provided.