Added type annotations and small fixes (#219)

* json.loads() accepts unicode

* threading.BoundedSemaphore is subclass of Semaphore

* Added type annotations for logging/__init__.pyi and logging/handlers.pyi

* Changed style of variable declaration to fit the rest of the file
This commit is contained in:
Dakkaron
2016-05-23 18:16:01 +02:00
committed by Guido van Rossum
parent 11049f9a4f
commit 25f5c9c6f8
4 changed files with 108 additions and 106 deletions

View File

@@ -73,7 +73,7 @@ class Semaphore(object):
def __enter__(self) -> bool: ...
def __exit__(self, *args): ...
class BoundedSemaphore(object):
class BoundedSemaphore(Semaphore):
def acquire(self, blocking: bool = ...) -> Optional[bool]: ...
def release(self) -> None: ...
def __init__(self, value: int = ...) -> None: ...