File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1215,10 +1215,10 @@ def __init__(
12151215 behavior on this parser. If this is None or not present, then cmd2 will use
12161216 argparse_completer.DEFAULT_AP_COMPLETER when tab completing this parser's arguments
12171217 """
1218- kw_args : dict [str , bool ] = {}
1218+ kwargs : dict [str , bool ] = {}
12191219 if sys .version_info >= (3 , 14 ):
12201220 # Python >= 3.14 so pass new arguments to parent argparse.ArgumentParser class
1221- kw_args = {
1221+ kwargs = {
12221222 "suggest_on_error" : suggest_on_error ,
12231223 "color" : color ,
12241224 }
@@ -1237,7 +1237,7 @@ def __init__(
12371237 add_help = add_help ,
12381238 allow_abbrev = allow_abbrev ,
12391239 exit_on_error = exit_on_error , # added in Python 3.9
1240- ** kw_args , # added in Python 3.14
1240+ ** kwargs , # added in Python 3.14
12411241 )
12421242
12431243 self .set_ap_completer_type (ap_completer_type ) # type: ignore[attr-defined]
You can’t perform that action at this time.
0 commit comments