@@ -305,7 +305,7 @@ class Cmd(cmd.Cmd):
305
305
DEFAULT_EDITOR = utils .find_editor ()
306
306
307
307
INTERNAL_COMMAND_EPILOG = (
308
- "Notes:\n " " This command is for internal use and is not intended to be called from the\n " " command line."
308
+ "Notes:\n This command is for internal use and is not intended to be called from the\n command line."
309
309
)
310
310
311
311
# Sorting keys for strings
@@ -3380,8 +3380,8 @@ def _cmdloop(self) -> None:
3380
3380
#############################################################
3381
3381
3382
3382
# Top-level parser for alias
3383
- alias_description = "Manage aliases\n " " \n " "An alias is a command that enables replacement of a word by another string."
3384
- alias_epilog = "See also:\n " " macro"
3383
+ alias_description = "Manage aliases\n \n An alias is a command that enables replacement of a word by another string."
3384
+ alias_epilog = "See also:\n macro"
3385
3385
alias_parser = argparse_custom .DEFAULT_ARGUMENT_PARSER (description = alias_description , epilog = alias_epilog )
3386
3386
alias_parser .add_subparsers (metavar = 'SUBCOMMAND' , required = True )
3387
3387
@@ -3548,8 +3548,8 @@ def _alias_list(self, args: argparse.Namespace) -> None:
3548
3548
#############################################################
3549
3549
3550
3550
# Top-level parser for macro
3551
- macro_description = "Manage macros\n " " \n " "A macro is similar to an alias, but it can contain argument placeholders."
3552
- macro_epilog = "See also:\n " " alias"
3551
+ macro_description = "Manage macros\n \n A macro is similar to an alias, but it can contain argument placeholders."
3552
+ macro_epilog = "See also:\n alias"
3553
3553
macro_parser = argparse_custom .DEFAULT_ARGUMENT_PARSER (description = macro_description , epilog = macro_epilog )
3554
3554
macro_parser .add_subparsers (metavar = 'SUBCOMMAND' , required = True )
3555
3555
@@ -3806,7 +3806,7 @@ def complete_help_subcommands(
3806
3806
return completer .complete_subcommand_help (text , line , begidx , endidx , arg_tokens ['subcommands' ])
3807
3807
3808
3808
help_parser = argparse_custom .DEFAULT_ARGUMENT_PARSER (
3809
- description = "List available commands or provide " " detailed help for a specific command"
3809
+ description = "List available commands or provide detailed help for a specific command"
3810
3810
)
3811
3811
help_parser .add_argument (
3812
3812
'-v' , '--verbose' , action = 'store_true' , help = "print a list of all commands with descriptions of each"
@@ -4699,22 +4699,22 @@ def do_ipy(self, _: argparse.Namespace) -> Optional[bool]: # pragma: no cover
4699
4699
4700
4700
history_format_group = history_parser .add_argument_group (title = 'formatting' )
4701
4701
history_format_group .add_argument (
4702
- '-s' , '--script' , action = 'store_true' , help = 'output commands in script format, i.e. without command\n ' 'numbers '
4702
+ '-s' , '--script' , action = 'store_true' , help = 'output commands in script format, i.e. without command\n numbers '
4703
4703
)
4704
4704
history_format_group .add_argument (
4705
4705
'-x' ,
4706
4706
'--expanded' ,
4707
4707
action = 'store_true' ,
4708
- help = 'output fully parsed commands with any aliases and\n ' 'macros expanded, instead of typed commands' ,
4708
+ help = 'output fully parsed commands with any aliases and\n macros expanded, instead of typed commands' ,
4709
4709
)
4710
4710
history_format_group .add_argument (
4711
4711
'-v' ,
4712
4712
'--verbose' ,
4713
4713
action = 'store_true' ,
4714
- help = 'display history and include expanded commands if they\n ' 'differ from the typed command' ,
4714
+ help = 'display history and include expanded commands if they\n differ from the typed command' ,
4715
4715
)
4716
4716
history_format_group .add_argument (
4717
- '-a' , '--all' , action = 'store_true' , help = 'display all commands, including ones persisted from\n ' 'previous sessions'
4717
+ '-a' , '--all' , action = 'store_true' , help = 'display all commands, including ones persisted from\n previous sessions'
4718
4718
)
4719
4719
4720
4720
history_arg_help = (
@@ -5189,7 +5189,7 @@ def do_run_script(self, args: argparse.Namespace) -> Optional[bool]:
5189
5189
"interpreted relative to the already-running script's directory."
5190
5190
)
5191
5191
5192
- relative_run_script_epilog = "Notes:\n " " This command is intended to only be used within text file scripts."
5192
+ relative_run_script_epilog = "Notes:\n This command is intended to only be used within text file scripts."
5193
5193
5194
5194
relative_run_script_parser = argparse_custom .DEFAULT_ARGUMENT_PARSER (
5195
5195
description = relative_run_script_description , epilog = relative_run_script_epilog
@@ -5671,7 +5671,7 @@ def _validate_prepostcmd_hook(
5671
5671
raise TypeError (f'{ func .__name__ } does not have a declared return type, expected { data_type } ' )
5672
5672
if signature .return_annotation != data_type :
5673
5673
raise TypeError (
5674
- f'{ func .__name__ } has incompatible return type { signature .return_annotation } , expected ' f' { data_type } '
5674
+ f'{ func .__name__ } has incompatible return type { signature .return_annotation } , expected { data_type } '
5675
5675
)
5676
5676
5677
5677
def register_precmd_hook (self , func : Callable [[plugin .PrecommandData ], plugin .PrecommandData ]) -> None :
0 commit comments