Skip to content

Fix an unnecessary allowlist entry in ssl.pyi#9776

Merged
JelleZijlstra merged 1 commit intomainfrom
ssl-namedtuples
Feb 21, 2023
Merged

Fix an unnecessary allowlist entry in ssl.pyi#9776
JelleZijlstra merged 1 commit intomainfrom
ssl-namedtuples

Conversation

@AlexWaygood
Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood commented Feb 20, 2023

The comment in the allowlist is incorrect: ssl._ASN1Object isn't actually a namedtuple class at runtime. It's a subclass of a namedtuple class at runtime, and it's fine to override __new__ in a subclass of a namedtuple class. https://github.com/python/cpython/blob/95f4e2ca03efbe020ae590108c022219008bbaf3/Lib/ssl.py#L452

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 4d99b33 into main Feb 21, 2023
@JelleZijlstra JelleZijlstra deleted the ssl-namedtuples branch February 21, 2023 00:35
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