Skip to content

Commit a7e5293

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent a987b39 commit a7e5293

File tree

7 files changed

+34
-4
lines changed

7 files changed

+34
-4
lines changed

stdlib/@tests/stubtest_allowlists/linux-py312.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ msilib(.[a-z]+)?
2121

2222
# doesn't exist in all installations
2323
(nis)?
24+
25+
# Bluetooth constants added for Python 3.14+ but missing at runtime on Ubuntu test runners
26+
27+
_socket.HCI_CHANNEL_RAW
28+
_socket.SOL_RFCOMM

stdlib/@tests/stubtest_allowlists/linux.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,8 @@ termios.TIOCTTYGSTRUCT
132132

133133
tkinter.Tk.createfilehandler # Methods that come from __getattr__() at runtime
134134
tkinter.Tk.deletefilehandler # Methods that come from __getattr__() at runtime
135+
136+
# Bluetooth constants added for Python 3.14+ but missing at runtime on Ubuntu test runners
137+
138+
_socket.HCI_CHANNEL_RAW
139+
_socket.SOL_RFCOMM

stdlib/@tests/stubtest_allowlists/py310.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,10 @@ _pickle.Pickler.persistent_id
307307
_pickle.Unpickler.persistent_load
308308
pickle.Pickler.persistent_id
309309
pickle.Unpickler.persistent_load
310+
311+
# Bluetooth constants added for Python 3.14+ but missing at runtime on Windows test runners
312+
_socket.SO_BTH_ENCRYPT
313+
_socket.SO_BTH_MTU
314+
_socket.SO_BTH_MTU_MAX
315+
_socket.SO_BTH_MTU_MIN
316+
_socket.SOL_RFCOMM

stdlib/@tests/stubtest_allowlists/win32-py310.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,10 @@ crypt
8080
nis
8181
ossaudiodev
8282
spwd
83+
84+
# Bluetooth constants added for Python 3.14+ but missing at runtime on Windows test runners
85+
_socket.SO_BTH_ENCRYPT
86+
_socket.SO_BTH_MTU
87+
_socket.SO_BTH_MTU_MAX
88+
_socket.SO_BTH_MTU_MIN
89+
_socket.SOL_RFCOMM

stdlib/@tests/stubtest_allowlists/win32-py313.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ _socket.SO_BTH_ENCRYPT
1212
_socket.SO_BTH_MTU
1313
_socket.SO_BTH_MTU_MAX
1414
_socket.SO_BTH_MTU_MIN
15-
_socket.SOL_RFCOMM
15+
_socket.SOL_RFCOMM

stdlib/@tests/stubtest_allowlists/win32.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ tty
3939
multiprocessing.popen_fork # exists on Windows but fails to import
4040
multiprocessing.popen_forkserver # exists on Windows but fails to import
4141
multiprocessing.popen_spawn_posix # exists on Windows but fails to import
42+
43+
# Bluetooth constants added for Python 3.14+ but missing at runtime on Windows test runners
44+
_socket.SO_BTH_ENCRYPT
45+
_socket.SO_BTH_MTU
46+
_socket.SO_BTH_MTU_MAX
47+
_socket.SO_BTH_MTU_MIN
48+
_socket.SOL_RFCOMM

stdlib/_socket.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ _CMSGArg: TypeAlias = tuple[int, int, ReadableBuffer]
1111
# Addresses can be either tuples of varying lengths (AF_INET, AF_INET6,
1212
# AF_NETLINK, AF_TIPC) or strings/buffers (AF_UNIX).
1313
# See getsockaddrarg() in socketmodule.c.
14-
_Address: TypeAlias = (
15-
tuple[Any, ...] | str | ReadableBuffer | int)
16-
# int is included because of device_id not packed in a tuple is now accepted for BTPROTO_HCI
14+
_Address: TypeAlias = tuple[Any, ...] | str | ReadableBuffer | int
15+
# int is included because of device_id not packed in a tuple is now accepted for BTPROTO_HCI
1716
_RetAddress: TypeAlias = Any
1817

1918
# ===== Constants =====

0 commit comments

Comments
 (0)