Skip to content

Conversation

@tungol
Copy link
Contributor

@tungol tungol commented Jan 2, 2026

fixes #15207

_socket.pyi constants are ordered based on the CPython documentation, but that doesn't seem to be the case in socket.pyi. I could merge the new if sys.platform != "darwin": blocks into existing if sys.platform != "darwin": blocks there, but I decided not to because the whole file really could use some re-organization in that regard.

If it's amenable, I could apply the same systematic ordering that I did for os.__all__ in #13052 to the blocks in socket.pyi responsible for import statements and __all__.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link

@dlech dlech left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this. 😄

@github-actions
Copy link
Contributor

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

@tungol tungol requested a review from srittau January 17, 2026 23:42
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.

Bluetooth socket constants missing on Linux

3 participants