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 0dcbd0e commit 1d30c30Copy full SHA for 1d30c30
src/typed_args/_parser.py
@@ -105,7 +105,7 @@ class ClassDef:
105
def add_argument(
106
*option_strings: str,
107
action: str = ...,
108
- nargs: str | int = ...,
+ nargs: typing.Union[str, int] = ...,
109
const: T = ...,
110
default: Union[T, str] = ...,
111
type: Type[T] = ...,
@@ -160,7 +160,7 @@ def add_parser(
160
name: str,
161
prog: str = ...,
162
aliases: Sequence[str] = ...,
163
-) -> dict: ...
+): ...
164
165
166
def add_parser(name: str, **kwargs):
0 commit comments