@@ -247,6 +247,7 @@ def _set_parser_prog(parser: argparse.ArgumentParser, prog: str) -> None:
247
247
elif action .required :
248
248
req_args .append (action .dest )
249
249
250
+
250
251
#: Function signature for a Command Function that uses an argparse.ArgumentParser to process user input
251
252
#: and optionally returns a boolean
252
253
ArgparseCommandFuncOptionalBoolReturn = Callable [[CommandParent , argparse .Namespace ], Optional [bool ]]
@@ -272,8 +273,7 @@ def with_argparser(
272
273
ns_provider : Optional [Callable [..., argparse .Namespace ]] = None ,
273
274
preserve_quotes : bool = False ,
274
275
with_unknown_args : bool = False ,
275
- ) -> Callable [[ArgparseCommandFunc [CommandParent ]], RawCommandFuncOptionalBoolReturn [CommandParent ]]:
276
- ... # pragma: no cover
276
+ ) -> Callable [[ArgparseCommandFunc [CommandParent ]], RawCommandFuncOptionalBoolReturn [CommandParent ]]: ... # pragma: no cover
277
277
278
278
279
279
@overload
@@ -283,8 +283,7 @@ def with_argparser(
283
283
ns_provider : Optional [Callable [..., argparse .Namespace ]] = None ,
284
284
preserve_quotes : bool = False ,
285
285
with_unknown_args : bool = False ,
286
- ) -> Callable [[ArgparseCommandFunc [CommandParent ]], RawCommandFuncOptionalBoolReturn [CommandParent ]]:
287
- ... # pragma: no cover
286
+ ) -> Callable [[ArgparseCommandFunc [CommandParent ]], RawCommandFuncOptionalBoolReturn [CommandParent ]]: ... # pragma: no cover
288
287
289
288
290
289
def with_argparser (
@@ -424,8 +423,7 @@ def as_subcommand_to(
424
423
* ,
425
424
help : Optional [str ] = None ,
426
425
aliases : Optional [List [str ]] = None ,
427
- ) -> Callable [[ArgparseCommandFunc [CommandParent ]], ArgparseCommandFunc [CommandParent ]]:
428
- ... # pragma: no cover
426
+ ) -> Callable [[ArgparseCommandFunc [CommandParent ]], ArgparseCommandFunc [CommandParent ]]: ... # pragma: no cover
429
427
430
428
431
429
@overload
@@ -436,8 +434,7 @@ def as_subcommand_to(
436
434
* ,
437
435
help : Optional [str ] = None ,
438
436
aliases : Optional [List [str ]] = None ,
439
- ) -> Callable [[ArgparseCommandFunc [CommandParent ]], ArgparseCommandFunc [CommandParent ]]:
440
- ... # pragma: no cover
437
+ ) -> Callable [[ArgparseCommandFunc [CommandParent ]], ArgparseCommandFunc [CommandParent ]]: ... # pragma: no cover
441
438
442
439
443
440
def as_subcommand_to (
0 commit comments