mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 17:54:01 +08:00
Bump getpass to 3.14 (#13967)
This commit is contained in:
@@ -394,7 +394,6 @@ functools.reduce
|
||||
functools.reduce
|
||||
functools.update_wrapper
|
||||
functools.wraps
|
||||
getpass.getpass
|
||||
gzip.GzipFile.readinto
|
||||
gzip.GzipFile.readinto
|
||||
gzip.GzipFile.readinto1
|
||||
|
||||
+7
-1
@@ -1,8 +1,14 @@
|
||||
import sys
|
||||
from typing import TextIO
|
||||
|
||||
__all__ = ["getpass", "getuser", "GetPassWarning"]
|
||||
|
||||
def getpass(prompt: str = "Password: ", stream: TextIO | None = None) -> str: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
def getpass(prompt: str = "Password: ", stream: TextIO | None = None, *, echo_char: str | None = None) -> str: ...
|
||||
|
||||
else:
|
||||
def getpass(prompt: str = "Password: ", stream: TextIO | None = None) -> str: ...
|
||||
|
||||
def getuser() -> str: ...
|
||||
|
||||
class GetPassWarning(UserWarning): ...
|
||||
|
||||
Reference in New Issue
Block a user