Skip to content

Commit fcc877d

Browse files
Update _thread to 3.14 (#14163)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d574139 commit fcc877d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
_asyncio.all_tasks
66
_imp.pyc_magic_number_token
7-
_thread.RLock.locked
8-
_thread.set_name
97
asyncio.eager_task_factory
108
asyncio.tasks.eager_task_factory
119
compression.gzip.GzipFile.readinto

stdlib/_thread.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class RLock:
1818
def release(self) -> None: ...
1919
__enter__ = acquire
2020
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
21+
if sys.version_info >= (3, 14):
22+
def locked(self) -> bool: ...
2123

2224
if sys.version_info >= (3, 13):
2325
@final
@@ -105,6 +107,9 @@ _excepthook: Callable[[_ExceptHookArgs], Any]
105107
if sys.version_info >= (3, 12):
106108
def daemon_threads_allowed() -> bool: ...
107109

110+
if sys.version_info >= (3, 14):
111+
def set_name(name: str) -> None: ...
112+
108113
class _local:
109114
def __getattribute__(self, name: str, /) -> Any: ...
110115
def __setattr__(self, name: str, value: Any, /) -> None: ...

0 commit comments

Comments
 (0)