You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "main.py", line 15, in <module>
app()
File "venv/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "venv/lib/python3.8/site-packages/click/core.py", line 781, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "venv/lib/python3.8/site-packages/click/core.py", line 700, in make_context
self.parse_args(ctx, args)
File "venv/lib/python3.8/site-packages/click/core.py", line 1048, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
File "venv/lib/python3.8/site-packages/click/core.py", line 1623, in handle_parse_result
value = self.full_process_value(ctx, value)
File "venv/lib/python3.8/site-packages/click/core.py", line 1965, in full_process_value
return Parameter.full_process_value(self, ctx, value)
File "venv/lib/python3.8/site-packages/click/core.py", line 1592, in full_process_value
value = self.get_default(ctx)
File "venv/lib/python3.8/site-packages/click/core.py", line 1917, in get_default
return Parameter.get_default(self, ctx)
File "venv/lib/python3.8/site-packages/click/core.py", line 1534, in get_default
return self.type_cast_value(ctx, rv)
File "venv/lib/python3.8/site-packages/click/core.py", line 1561, in type_cast_value
return self.type(value or (), self, ctx)
File "venv/lib/python3.8/site-packages/click/types.py", line 46, in __call__
return self.convert(value, param, ctx)
File "venv/lib/python3.8/site-packages/click/types.py", line 681, in convert
raise TypeError(
TypeError: It would appear that nargs is set to conflict with the composite type arity.
Describe the bug
For an option that is of Tuple type and set to required with
...
, a TypeError occurs when no value passed in the command line.To Reproduce
Steps to reproduce the behavior with a minimum self-contained file.
Replace each part with your own scenario:
main.py
with:Expected behavior
Act like other required options.
Environment
Additional context
Same exception with this setting:
No exception with this:
The text was updated successfully, but these errors were encountered: