mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-01 17:22:17 +08:00
Add Optional[] for all remaining cases of x: <type> = None (#1424)
* Final round of adding Optional[] to type of arguments with default = None * Update Travis to use --no-implicit-optionals and clarify CONTRIBUTING.md
This commit is contained in:
1 parent
81f77b17ec
commit
350563223f
18 files changed
+152
-133
No files matched your search
@@ -37,7 +37,7 @@ class Event:
|
||||
def wait(self) -> Generator[Any, None, bool]: ...
|
||||
|
||||
class Condition(_ContextManagerMixin):
|
||||
def __init__(self, lock: Lock = None, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
||||
def __init__(self, lock: Optional[Lock] = None, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...
|
||||
def locked(self) -> bool: ...
|
||||
@coroutine
|
||||
def acquire(self) -> Generator[Any, None, bool]: ...
|
||||
|
||||
Reference in new issue
Block a user