Inherit from Any in threading.local and SimpleNamespace

This commit is contained in:
Daniel Shaulov
2016-01-22 12:24:36 +02:00
parent 01d96e4ac4
commit 14ffe7ea17
3 changed files with 4 additions and 6 deletions

View File

@@ -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: ...