-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
stdlib updates for latest Python patch releases #12638
Conversation
This comment has been minimized.
This comment has been minimized.
stdlib/email/_policybase.pyi
Outdated
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5 | ||
verify_generated_headers: bool = ..., | ||
) -> Self: ... | ||
def __add__(self, other: Any) -> Self: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type of other
could probably be limited to Policy
or _PolicyBase
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the same. I'll just use Policy
as it seems that _PolicyBase
is only ever used as base for Policy
. (This whole policy thing looks to be an over-aggressive application of SmallTalk-/Java-based patterns and plans for future compatibility that never turned out to be necessary.)
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Closes: #12631