mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
* Final round of adding Optional[] to type of arguments with default = None * Update Travis to use --no-implicit-optionals and clarify CONTRIBUTING.md
14 lines
209 B
Python
14 lines
209 B
Python
# Stubs for getpass
|
|
|
|
from typing import Optional, TextIO
|
|
|
|
|
|
def getpass(prompt: str = ..., stream: Optional[TextIO] = None) -> str: ...
|
|
|
|
|
|
def getuser() -> str: ...
|
|
|
|
|
|
class GetPassWarning(UserWarning):
|
|
pass
|