Skip to content

Conversation

@ghubrakesh
Copy link
Contributor

@ghubrakesh ghubrakesh commented Jul 29, 2023

Changed the lines:

      class XZ(X, Z): pass  # raises TypeError

-       T = TypeVar('T')
-      class XT(X, Generic[T]): pass  # raises TypeError
-

   A ``TypedDict`` can be generic::

      class Group[T](TypedDict):
          key: T
   

this example was redundant as it was explained in deep in the next few lines. So it needed to get removed.


📚 Documentation preview 📚: https://cpython-previews--107436.org.readthedocs.build/

@ghost
Copy link

ghost commented Jul 29, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@AlexWaygood AlexWaygood changed the title changed typing.rst as mentioned in #107422 gh-107422: Remove outdated TypedDict example from typing docs Jul 29, 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.

Thanks, looks good to me!

@AlexWaygood AlexWaygood added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jul 29, 2023
@AlexWaygood AlexWaygood enabled auto-merge (squash) July 29, 2023 17:01
@AlexWaygood AlexWaygood merged commit 89fd4f4 into python:main Jul 29, 2023
@miss-islington
Copy link
Contributor

Thanks @ghubrakesh for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @ghubrakesh and @AlexWaygood, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 89fd4f4a3fc5fb8076ec064c22a30108480e946b 3.11

@bedevere-bot
Copy link

GH-107437 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Jul 29, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 29, 2023
…pythonGH-107436)

(cherry picked from commit 89fd4f4)

Co-authored-by: Rakesh Sabale <102187286+ghubrakesh@users.noreply.github.com>
@bedevere-bot
Copy link

GH-107438 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jul 29, 2023
AlexWaygood pushed a commit that referenced this pull request Jul 29, 2023
GH-107436) (#107437)

gh-107422: Remove outdated `TypedDict` example from typing docs (GH-107436)
(cherry picked from commit 89fd4f4)

Co-authored-by: Rakesh Sabale <102187286+ghubrakesh@users.noreply.github.com>
AlexWaygood added a commit that referenced this pull request Jul 29, 2023
#107436) (#107438)

gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)

Co-authored-by: Rakesh Sabale <102187286+ghubrakesh@users.noreply.github.com>
@ghubrakesh
Copy link
Contributor Author

Thank you, @AlexWaygood, for the guidance. This was my first contribution to open-source (Though it was a tiny one, It's special to me). Thank you so much for detailed description of the problem.

@AlexWaygood
Copy link
Member

The first PR is always special! Thanks for the contribution @ghubrakesh, it was a good one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants