mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -2,7 +2,7 @@ from typing import TextIO
|
||||
|
||||
__all__ = ["getpass", "getuser", "GetPassWarning"]
|
||||
|
||||
def getpass(prompt: str = ..., stream: TextIO | None = ...) -> str: ...
|
||||
def getpass(prompt: str = "Password: ", stream: TextIO | None = None) -> str: ...
|
||||
def getuser() -> str: ...
|
||||
|
||||
class GetPassWarning(UserWarning): ...
|
||||
|
||||
Reference in New Issue
Block a user