mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
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:
committed by
Guido van Rossum
parent
11049f9a4f
commit
25f5c9c6f8
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user