From c0b9786fee1b712282de59dc8bf88798615bfca8 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Tue, 15 Mar 2016 10:15:31 +0100 Subject: [PATCH] Complete getpass stubs --- stdlib/3/getpass.pyi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stdlib/3/getpass.pyi b/stdlib/3/getpass.pyi index 5938d6152..96c542810 100644 --- a/stdlib/3/getpass.pyi +++ b/stdlib/3/getpass.pyi @@ -1,5 +1,13 @@ # Stubs for getpass -# NOTE: These are incomplete! +from typing import TextIO + + +def getpass(prompt: str = ..., stream: TextIO = None): ... + def getuser() -> str: ... + + +class GetPassWarning(UserWarning): + pass