File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
packages/plugin/src/robotcode/plugin/click_helper Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ repos:
19
19
args : []
20
20
- repo : local
21
21
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"
30
22
- id : python_style
31
23
name : Check Python Style
32
24
entry : hatch run lint:style
Original file line number Diff line number Diff line change 20
20
T = TypeVar ("T" , bound = Enum )
21
21
22
22
23
- class EnumChoice (click .Choice , Generic [T ]): # type: ignore[type-arg]
23
+ class EnumChoice (click .Choice , Generic [T ]):
24
24
"""A click.Choice that accepts Enum values."""
25
25
26
26
def __init__ (
@@ -30,7 +30,7 @@ def __init__(
30
30
excluded : Optional [Set [T ]] = None ,
31
31
) -> None :
32
32
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]
34
34
case_sensitive ,
35
35
)
36
36
You can’t perform that action at this time.
0 commit comments