Skip to content

Commit 8ef14c7

Browse files
committed
chore: fix some linting errors
1 parent 19a2632 commit 8ef14c7

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ repos:
1919
args: []
2020
- repo: local
2121
hooks:
22-
- id: lint_package_update
23-
name: Update package for lint environment
24-
entry: hatch run lint:install-packages
25-
pass_filenames: false
26-
language: system
27-
stages: [pre-commit]
28-
types:
29-
- "python"
3022
- id: python_style
3123
name: Check Python Style
3224
entry: hatch run lint:style

packages/plugin/src/robotcode/plugin/click_helper/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
T = TypeVar("T", bound=Enum)
2121

2222

23-
class EnumChoice(click.Choice, Generic[T]): # type: ignore[type-arg]
23+
class EnumChoice(click.Choice, Generic[T]):
2424
"""A click.Choice that accepts Enum values."""
2525

2626
def __init__(
@@ -30,7 +30,7 @@ def __init__(
3030
excluded: Optional[Set[T]] = None,
3131
) -> None:
3232
super().__init__(
33-
choices if excluded is None else (set(choices).difference(excluded)),
33+
choices if excluded is None else (set(choices).difference(excluded)), # type: ignore[arg-type]
3434
case_sensitive,
3535
)
3636

0 commit comments

Comments
 (0)