We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d961de1 commit 47364a3Copy full SHA for 47364a3
python_typing_update/__main__.py
@@ -34,15 +34,12 @@ def __init__(
34
35
36
async def async_main(argv: list[str] | None = None) -> int:
37
- parser_kwargs: dict[str, Any] = {}
38
- if sys.version_info >= (3, 14):
39
- parser_kwargs["color"] = True
40
-
41
parser = argparse.ArgumentParser(
42
description="Tool to update Python typing syntax.",
43
formatter_class=CustomHelpFormatter,
44
- **parser_kwargs,
45
)
+ if sys.version_info >= (3, 14):
+ parser.color = True # Set as init arg in 3.14
46
formatter_options = parser.add_argument_group("select optional formatter")
47
mode_options = parser.add_argument_group("select different mode")
48
py_version_options = parser.add_argument_group("python version options")
0 commit comments