11import signal
22import sys
3- from _typeshed import structseq
3+ from _typeshed import FloatInt , structseq
44from collections .abc import Callable
55from threading import Thread
66from types import TracebackType
@@ -15,7 +15,7 @@ def _count() -> int: ...
1515
1616@final
1717class RLock :
18- def acquire (self , blocking : bool = True , timeout : float = - 1 ) -> bool : ...
18+ def acquire (self , blocking : bool = True , timeout : FloatInt = - 1 ) -> bool : ...
1919 def release (self ) -> None : ...
2020 __enter__ = acquire
2121 def __exit__ (
@@ -29,7 +29,7 @@ if sys.version_info >= (3, 13):
2929 class _ThreadHandle :
3030 ident : int
3131
32- def join (self , timeout : float | None = None , / ) -> None : ...
32+ def join (self , timeout : FloatInt | None = None , / ) -> None : ...
3333 def is_done (self ) -> bool : ...
3434 def _set_done (self ) -> None : ...
3535
@@ -39,11 +39,11 @@ if sys.version_info >= (3, 13):
3939
4040 @final
4141 class lock :
42- def acquire (self , blocking : bool = True , timeout : float = - 1 ) -> bool : ...
42+ def acquire (self , blocking : bool = True , timeout : FloatInt = - 1 ) -> bool : ...
4343 def release (self ) -> None : ...
4444 def locked (self ) -> bool : ...
4545 @deprecated ("Obsolete synonym. Use `acquire()` instead." )
46- def acquire_lock (self , blocking : bool = True , timeout : float = - 1 ) -> bool : ... # undocumented
46+ def acquire_lock (self , blocking : bool = True , timeout : FloatInt = - 1 ) -> bool : ... # undocumented
4747 @deprecated ("Obsolete synonym. Use `release()` instead." )
4848 def release_lock (self ) -> None : ... # undocumented
4949 @deprecated ("Obsolete synonym. Use `locked()` instead." )
@@ -57,11 +57,11 @@ if sys.version_info >= (3, 13):
5757else :
5858 @final
5959 class LockType :
60- def acquire (self , blocking : bool = True , timeout : float = - 1 ) -> bool : ...
60+ def acquire (self , blocking : bool = True , timeout : FloatInt = - 1 ) -> bool : ...
6161 def release (self ) -> None : ...
6262 def locked (self ) -> bool : ...
6363 @deprecated ("Obsolete synonym. Use `acquire()` instead." )
64- def acquire_lock (self , blocking : bool = True , timeout : float = - 1 ) -> bool : ... # undocumented
64+ def acquire_lock (self , blocking : bool = True , timeout : FloatInt = - 1 ) -> bool : ... # undocumented
6565 @deprecated ("Obsolete synonym. Use `release()` instead." )
6666 def release_lock (self ) -> None : ... # undocumented
6767 @deprecated ("Obsolete synonym. Use `locked()` instead." )
@@ -93,7 +93,7 @@ def allocate() -> LockType: ... # undocumented
9393def get_ident () -> int : ...
9494def stack_size (size : int = 0 , / ) -> int : ...
9595
96- TIMEOUT_MAX : Final [float ]
96+ TIMEOUT_MAX : Final [FloatInt ]
9797
9898def get_native_id () -> int : ... # only available on some platforms
9999
0 commit comments