File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 9
9
if TYPE_CHECKING :
10
10
from collections .abc import Callable
11
11
12
- from click import types as clicktypes
13
-
14
12
15
13
@dataclasses .dataclass (frozen = True )
16
14
class Param :
@@ -44,9 +42,9 @@ class Param:
44
42
"""Whether the parameter is required."""
45
43
secondary_opts : list [str ] = dataclasses .field (default_factory = list )
46
44
"""Secondary options for this parameter."""
47
- type : clicktypes . ParamType | None = None
45
+ type : dict [ str , str ] | None = None
48
46
"""The type object of the parameter."""
49
- callback : Callable | None = None
47
+ callback : Callable [[ Any ], Any ] | None = None
50
48
"""A method to further process the value after type conversion."""
51
49
expose_value : str = ""
52
50
"""Whether value is passed onwards to the command callback and stored in context."""
You can’t perform that action at this time.
0 commit comments