mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
stdlib: fix many attributes which are read-only at runtime but read-write in the stub (#7395)
This commit is contained in:
1 parent
46da0b87ea
commit
a0b41959ec
17 files changed
+104
-50
No files matched your search
@@ -120,7 +120,8 @@ class local:
|
||||
|
||||
class Thread:
|
||||
name: str
|
||||
ident: int | None
|
||||
@property
|
||||
def ident(self) -> int | None: ...
|
||||
daemon: bool
|
||||
def __init__(
|
||||
self,
|
||||
@@ -225,9 +226,12 @@ class Timer(Thread):
|
||||
def cancel(self) -> None: ...
|
||||
|
||||
class Barrier:
|
||||
parties: int
|
||||
n_waiting: int
|
||||
broken: bool
|
||||
@property
|
||||
def parties(self) -> int: ...
|
||||
@property
|
||||
def n_waiting(self) -> int: ...
|
||||
@property
|
||||
def broken(self) -> bool: ...
|
||||
def __init__(self, parties: int, action: Callable[[], None] | None = ..., timeout: float | None = ...) -> None: ...
|
||||
def wait(self, timeout: float | None = ...) -> int: ...
|
||||
def reset(self) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user