FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix old behaviour in typing documentation by Gobot1234 · Pull Request #103400 · python/cpython · GitHub

/ cpython Public

Fix old behaviour in typing documentation - #103400

Merged
AlexWaygood merged 1 commit into
python:mainfrom
Gobot1234:patch-1
Apr 9, 2023
Merged

Fix old behaviour in typing documentation#103400
AlexWaygood merged 1 commit into
python:mainfrom
Gobot1234:patch-1

Conversation

Gobot1234 commented Apr 9, 2023
edited
Loading

Copy link
Copy Markdown
Contributor
>>> class Z(Generic[T, P]): ...
... 
>>> Z[int, [dict, float]]
__main__.Z[int, [dict, float]]

Related to #102637

>>> class Z(Generic[T, P]): ...
... 
>>> Z[int, [dict, float]]
__main__.Z[int, [dict, float]]

Copy link
Copy Markdown
Contributor Author

Should this be backported to 3.11? It doesn't look like the original fix was

Copy link
Copy Markdown
Member

Good point

AlexWaygood removed the needs backport to 3.11 only security fixes label Apr 9, 2023

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We should probably change it so that these REPL snippets are actually run as part of CPython's doctest suite. But that can wait.

AlexWaygood merged commit ecad802 into python:main Apr 9, 2023
Gobot1234 deleted the patch-1 branch April 9, 2023 22:12
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Apr 18, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL