mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 06:35:22 +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:
committed by
Matthias Kramm
parent
81f77b17ec
commit
350563223f
@@ -1,9 +1,9 @@
|
||||
# Stubs for getpass
|
||||
|
||||
from typing import TextIO
|
||||
from typing import Optional, TextIO
|
||||
|
||||
|
||||
def getpass(prompt: str = ..., stream: TextIO = None) -> str: ...
|
||||
def getpass(prompt: str = ..., stream: Optional[TextIO] = None) -> str: ...
|
||||
|
||||
|
||||
def getuser() -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user