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:
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
Original file line number Diff line number Diff line change 2020T = 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
You can’t perform that action at this time.
0 commit comments