X Tutup
The Wayback Machine - https://web.archive.org/web/20220519150437/https://github.com/python/cpython/pull/92129
Skip to content
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

gh-92128: Add __class_getitem__ to logging.LoggerAdapter and logging.StreamHandler #92129

Merged
merged 4 commits into from May 2, 2022

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented May 1, 2022

Closes #92128

@AlexWaygood AlexWaygood requested a review from vsajip as a code owner May 1, 2022
@AlexWaygood AlexWaygood requested a review from JelleZijlstra May 1, 2022
@AlexWaygood AlexWaygood added type-feature stdlib labels May 1, 2022
@AlexWaygood
Copy link
Member Author

@AlexWaygood AlexWaygood commented May 1, 2022

Previous changes like this have not made changes to the docs to note the addition of __class_getitem__, but I'm happy to do so here if it's desirable.

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Looks good, I checked the stubs and it makes sense that these classes are generic.

I do think we should document that these classes are generic and say how many type arguments to expect and what they mean. We should do that more broadly for generic classes, though, and I'd rather get the runtime change in before the feature freeze.

vsajip
vsajip approved these changes May 2, 2022
@JelleZijlstra JelleZijlstra merged commit ab616d3 into python:main May 2, 2022
13 checks passed
@AlexWaygood AlexWaygood deleted the logging branch May 2, 2022
@AlexWaygood
Copy link
Member Author

@AlexWaygood AlexWaygood commented May 2, 2022

Thanks all for the speedy reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expert-typing stdlib type-feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
X Tutup