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
It is legal, because argparse only check choice in choices, and it will be faster than choices is a list.
However, shtab will:
File "/tmp/pip-build-env-xrs7p_m9/overlay/lib/python3.11/site-packages/shtab/__init__.py", line 795, in __call__
print(complete(parent or parser, values, preamble=preamble))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-xrs7p_m9/overlay/lib/python3.11/site-packages/shtab/__init__.py", line 784, in complete
return completer(
^^^^^^^^^^
File "/tmp/pip-build-env-xrs7p_m9/overlay/lib/python3.11/site-packages/shtab/__init__.py", line 506, in complete_zsh
"cmd": prog, "arguments": [
^
File "/tmp/pip-build-env-xrs7p_m9/overlay/lib/python3.11/site-packages/shtab/__init__.py", line 507, in <listcomp>
format_optional(opt, parser)
File "/tmp/pip-build-env-xrs7p_m9/overlay/lib/python3.11/site-packages/shtab/__init__.py", line 488, in format_optional
(choice_type2fn[opt.choices[0].type] if isinstance(opt.choices[0], Choice) else
~~~~~~~~~~~^^^
TypeError: 'set' object is not subscriptable
The text was updated successfully, but these errors were encountered:
Freed-Wu
added a commit
to termux/termux-language-server
that referenced
this issue
Oct 26, 2023
If we
It is legal, because argparse only check
choice in choices
, and it will be faster than choices is a list.However, shtab will:
The text was updated successfully, but these errors were encountered: