Skip to content

Commit f3dd0e1

Browse files
committed
fix.
1 parent 311397b commit f3dd0e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytask/click.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
if importlib.metadata.version("click") < "8.2":
4040
from click.parser import split_opt
4141

42-
class EnumChoice(Choice): # type: ignore[type-arg]
42+
class EnumChoice(Choice): # type: ignore[type-arg, unused-ignore]
4343
"""An enum-based choice type.
4444
4545
The implementation is copied from https://github.com/pallets/click/pull/2210 and
@@ -77,7 +77,7 @@ def convert(
7777

7878
ParamTypeValue = TypeVar("ParamTypeValue")
7979

80-
class EnumChoice(Choice): # type: ignore[no-redef, type-arg]
80+
class EnumChoice(Choice): # type: ignore[no-redef, type-arg, unused-ignore]
8181
def __init__(
8282
self, choices: Iterable[ParamTypeValue], case_sensitive: bool = False
8383
) -> None:
@@ -340,7 +340,7 @@ def _format_help_text( # noqa: C901, PLR0912, PLR0915
340340
elif param.is_bool_flag and param.secondary_opts: # type: ignore[attr-defined]
341341
# For boolean flags that have distinct True/False opts,
342342
# use the opt without prefix instead of the value.
343-
default_string = split_opt( # type: ignore[operator]
343+
default_string = split_opt( # type: ignore[operator, unused-ignore]
344344
(param.opts if param.default else param.secondary_opts)[0]
345345
)[1]
346346
elif (

0 commit comments

Comments
 (0)