Skip to content

Fix old behaviour in typing documentation #103400

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

Merged
merged 1 commit into from
Apr 9, 2023
Merged

Conversation

Gobot1234
Copy link
Contributor

@Gobot1234 Gobot1234 commented Apr 9, 2023

>>> 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]]
@Gobot1234
Copy link
Contributor Author

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

@AlexWaygood
Copy link
Member

Good point

@AlexWaygood AlexWaygood removed the needs backport to 3.11 only security fixes label Apr 9, 2023
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

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 AlexWaygood merged commit ecad802 into python:main Apr 9, 2023
@Gobot1234 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
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