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 25ad2b2 commit 42eaca5Copy full SHA for 42eaca5
stdlib/argparse.pyi
@@ -68,7 +68,8 @@ OPTIONAL: Literal["?"]
68
PARSER: Literal["A..."]
69
REMAINDER: Literal["..."]
70
_SUPPRESS_T = NewType("_SUPPRESS_T", str)
71
-SUPPRESS: _SUPPRESS_T # not using Literal because argparse sometimes compares SUPPRESS with is
+SUPPRESS: _SUPPRESS_T | str # not using Literal because argparse sometimes compares SUPPRESS with is
72
+# the | str is there so that foo = argparse.SUPPRESS; foo = "test" checks out in mypy
73
ZERO_OR_MORE: Literal["*"]
74
_UNRECOGNIZED_ARGS_ATTR: str # undocumented
75
0 commit comments