Skip to content

Add typing.Generic to default lib_doc_excludes #1429

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maxhowald
Copy link

Since python 3.12 generic classes implicitly inherit from typing.Generic.

Googling "On Python 3.12 and newer, generic classes implicitly inherit from Generic" turns up some docs that unintentionally include this doc-string:
https://github.com/python/cpython/blob/34ce1920ca33c11ca2c379ed0ef30a91010bef4f/Objects/typevarobject.c#L2188

This test fails with python>=3.12 because the docstring for
typing.Generic is picked up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants