@@ -2434,9 +2434,7 @@ def _perform_completion(
24342434 if len (self .completion_matches ) == 1 and self .allow_closing_quote and completion_token_quote :
24352435 self .completion_matches [0 ] += completion_token_quote
24362436
2437- def complete ( # type: ignore[override]
2438- self , text : str , state : int , custom_settings : utils .CustomCompletionSettings | None = None
2439- ) -> str | None :
2437+ def complete (self , text : str , state : int , custom_settings : utils .CustomCompletionSettings | None = None ) -> str | None :
24402438 """Override of cmd's complete method which returns the next possible completion for 'text'.
24412439
24422440 This completer function is called by readline as complete(text, state), for state in 0, 1, 2, …,
@@ -3294,7 +3292,7 @@ def onecmd(self, statement: Statement | str, *, add_to_history: bool = True) ->
32943292
32953293 return stop if stop is not None else False
32963294
3297- def default (self , statement : Statement ) -> bool | None : # type: ignore[override]
3295+ def default (self , statement : Statement ) -> bool | None :
32983296 """Execute when the command given isn't a recognized command implemented by a do_* method.
32993297
33003298 :param statement: Statement object with parsed input
@@ -5903,11 +5901,10 @@ def _report_disabled_command_usage(self, *_args: Any, message_to_print: str, **_
59035901 """
59045902 self .perror (message_to_print , style = None )
59055903
5906- def cmdloop (self , intro : str = '' ) -> int : # type: ignore[override]
5904+ def cmdloop (self , intro : RenderableType = '' ) -> int :
59075905 """Deal with extra features provided by cmd2, this is an outer wrapper around _cmdloop().
59085906
5909- _cmdloop() provides the main loop equivalent to cmd.cmdloop(). This is a wrapper around that which deals with
5910- the following extra features provided by cmd2:
5907+ _cmdloop() provides the main loop. This provides the following extra features provided by cmd2:
59115908 - transcript testing
59125909 - intro banner
59135910 - exit code
0 commit comments