Skip to content

Commit a7a8a03

Browse files
committed
Renamed kw_args to kwargs for idomatic consistency
1 parent c7a3a9f commit a7a8a03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2/argparse_custom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)