-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add Bluetooth constants for python 3.14 #15330
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
Changes from 3 commits
61b540f
f460d10
541eb42
8875184
83ca700
d8ee6b5
717f7cb
74c8f48
3efa725
b9f25b7
78ddaf3
096518f
e5a8806
ac8ecb8
f2eb6ac
16415a6
a987b39
d73e6e7
a7e5293
b1a62e3
457e7fe
e0056ab
db48b40
e8bff12
7827112
4cf8971
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -11,7 +11,7 @@ _CMSGArg: TypeAlias = tuple[int, int, ReadableBuffer] | |||
| # Addresses can be either tuples of varying lengths (AF_INET, AF_INET6, | ||||
| # AF_NETLINK, AF_TIPC) or strings/buffers (AF_UNIX). | ||||
| # See getsockaddrarg() in socketmodule.c. | ||||
| _Address: TypeAlias = tuple[Any, ...] | str | ReadableBuffer | ||||
| _Address: TypeAlias = tuple[Any, ...] | str | ReadableBuffer | int | ||||
| _RetAddress: TypeAlias = Any | ||||
|
|
||||
| # ===== Constants ===== | ||||
|
|
@@ -34,8 +34,76 @@ SOCK_SEQPACKET: Final[int] | |||
|
|
||||
| if sys.platform == "linux": | ||||
| # Availability: Linux >= 2.6.27 | ||||
| SOCK_CLOEXEC: Final[int] | ||||
| SOCK_NONBLOCK: Final[int] | ||||
| if sys.version_info >= (3, 14): | ||||
| SOCK_CLOEXEC: Final[int] | ||||
| SOCK_NONBLOCK: Final[int] | ||||
|
||||
| BDADDR_BREDR: Final[int] | ||||
|
||||
| # Semi-documented constants |
Same comment applies to the Windows-only constants.
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 comment above should be modified to explain why
intis included.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.
Thanks for pointing this out! I’ll update the comment to explain why int is included.