mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -23,9 +23,9 @@ class Cmd:
|
||||
stdout: IO[str]
|
||||
cmdqueue: list[str]
|
||||
completekey: str
|
||||
def __init__(self, completekey: str = ..., stdin: IO[str] | None = ..., stdout: IO[str] | None = ...) -> None: ...
|
||||
def __init__(self, completekey: str = "tab", stdin: IO[str] | None = None, stdout: IO[str] | None = None) -> None: ...
|
||||
old_completer: Callable[[str, int], str | None] | None
|
||||
def cmdloop(self, intro: Any | None = ...) -> None: ...
|
||||
def cmdloop(self, intro: Any | None = None) -> None: ...
|
||||
def precmd(self, line: str) -> str: ...
|
||||
def postcmd(self, stop: bool, line: str) -> bool: ...
|
||||
def preloop(self) -> None: ...
|
||||
@@ -43,4 +43,4 @@ class Cmd:
|
||||
def complete_help(self, *args: Any) -> list[str]: ...
|
||||
def do_help(self, arg: str) -> bool | None: ...
|
||||
def print_topics(self, header: str, cmds: list[str] | None, cmdlen: Any, maxcol: int) -> None: ...
|
||||
def columnize(self, list: list[str] | None, displaywidth: int = ...) -> None: ...
|
||||
def columnize(self, list: list[str] | None, displaywidth: int = 80) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user