mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-08 20:43:25 +08:00
Add __getattr__(), __setattr__(), __delattr__() to 2.7 threading.local().
This commit is contained in:
@@ -46,7 +46,9 @@ class ThreadError(Exception):
|
||||
|
||||
class local(object):
|
||||
# TODO: allows arbitrary parameters...
|
||||
pass
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
|
||||
class Event(object):
|
||||
def is_set(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user