mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
Inherit from Any in threading.local and SimpleNamespace
This commit is contained in:
@@ -43,11 +43,7 @@ def stack_size(size: int = ...) -> None: ...
|
||||
class ThreadError(Exception):
|
||||
pass
|
||||
|
||||
class local(object):
|
||||
# TODO: allows arbitrary parameters...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
class local(Any): ...
|
||||
|
||||
class Event(object):
|
||||
def is_set(self) -> bool: ...
|
||||
|
||||
@@ -29,6 +29,8 @@ class Timer(Thread):
|
||||
kwargs: Mapping[str, Any] = ...) -> None: ...
|
||||
def cancel(self) -> None : ...
|
||||
|
||||
class local(Any): ...
|
||||
|
||||
class Event:
|
||||
def is_set(self) -> bool: ...
|
||||
def set(self) -> None: ...
|
||||
|
||||
@@ -67,7 +67,7 @@ class MappingProxyType:
|
||||
def __getitem__(self, key: str) -> Any: ...
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def __len__(self) -> int: ...
|
||||
class SimpleNamespace: ...
|
||||
class SimpleNamespace(Any): ...
|
||||
|
||||
class GeneratorType:
|
||||
gi_code = ... # type: CodeType
|
||||
|
||||
Reference in New Issue
Block a user