From 7682ae957a32686becaf884de26cf79c9de5b221 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 14 Feb 2022 08:24:29 +0000 Subject: [PATCH] `cmd.Cmd.default` returns `None`, not `bool` (#7193) --- stdlib/cmd.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/cmd.pyi b/stdlib/cmd.pyi index 82b2a7bc8..d1166db0f 100644 --- a/stdlib/cmd.pyi +++ b/stdlib/cmd.pyi @@ -32,7 +32,7 @@ class Cmd: def parseline(self, line: str) -> tuple[str | None, str | None, str]: ... def onecmd(self, line: str) -> bool: ... def emptyline(self) -> bool: ... - def default(self, line: str) -> bool: ... + def default(self, line: str) -> None: ... def completedefault(self, *ignored: Any) -> list[str]: ... def completenames(self, text: str, *ignored: Any) -> list[str]: ... completion_matches: list[str] | None