Skip to content

Fix stdlib stubtest for latest Python patch releases - #13464

Merged
AlexWaygood merged 6 commits into
mainfrom
alex/new-pythons
Feb 5, 2025
Merged

AlexWaygood merged 6 commits into
mainfrom
alex/new-pythons

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

I noticed the daily test was about to fail this evening due to some of the changes in the new patch releases for Python 3.12 and 3.13

@AlexWaygood

AlexWaygood commented Feb 5, 2025 •

Copy link
Copy Markdown
Member Author

socket.SO_BINDTODEVICE seems like it was available on Python 3.13/Darwin between December 5th (see #13196) and February 4th inclusive... no idea why. It's not available for me locally either (and not documented as being available on Darwin, I don't think?), so I've removed it from the stub again.

SPECIALSNL: Final[set[str]]

if sys.version_info >= (3, 12):
def make_quoted_pairs(value: Any) -> str: ...

@AlexWaygood AlexWaygood Feb 5, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just gave this the same signature as quote_string below, since quote_string directly calls make_quoted_pairs now: https://github.com/python/cpython/blob/58a4357e29a15135e6fd99f320c60f8ea0472d27/Lib/email/_header_value_parser.py#L99-L106

@github-actions

github-actions Bot commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

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

@AlexWaygood

Copy link
Copy Markdown
Member Author

Just going to merge so the daily test doesn't fail in half an hour, but it anybody has any post-merge review comments I'm happy to tackle them in a followup PR!

@AlexWaygood
AlexWaygood merged commit 5caaf2e into main Feb 5, 2025
@AlexWaygood
AlexWaygood deleted the alex/new-pythons branch February 5, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant