mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-18 03:51:24 +08:00
Add a stub for sys.thread_info (#10016)
This commit is contained in:
1 parent
49815eac25
commit
cc674b5dce
2 files changed
+14
-1
No files matched your search
@@ -201,6 +201,20 @@ class _int_info(structseq[int], tuple[int, int, int, int]):
|
||||
@property
|
||||
def str_digits_check_threshold(self) -> int: ...
|
||||
|
||||
_ThreadInfoName: TypeAlias = Literal["nt", "pthread", "pthread-stubs", "solaris"]
|
||||
_ThreadInfoLock: TypeAlias = Literal["semaphore", "mutex+cond"] | None
|
||||
|
||||
@final
|
||||
class _thread_info(_UninstantiableStructseq, tuple[_ThreadInfoName, _ThreadInfoLock, str | None]):
|
||||
@property
|
||||
def name(self) -> _ThreadInfoName: ...
|
||||
@property
|
||||
def lock(self) -> _ThreadInfoLock: ...
|
||||
@property
|
||||
def version(self) -> str | None: ...
|
||||
|
||||
thread_info: _thread_info
|
||||
|
||||
@final
|
||||
class _version_info(_UninstantiableStructseq, tuple[int, int, int, str, int]):
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user