Skip to content

Commit 18fa22c

Browse files
committed
chore: param typing
1 parent ccaf145 commit 18fa22c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mknodes/info/cli/param.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
if TYPE_CHECKING:
1010
from collections.abc import Callable
1111

12-
from click import types as clicktypes
13-
1412

1513
@dataclasses.dataclass(frozen=True)
1614
class Param:
@@ -44,9 +42,9 @@ class Param:
4442
"""Whether the parameter is required."""
4543
secondary_opts: list[str] = dataclasses.field(default_factory=list)
4644
"""Secondary options for this parameter."""
47-
type: clicktypes.ParamType | None = None
45+
type: dict[str, str] | None = None
4846
"""The type object of the parameter."""
49-
callback: Callable | None = None
47+
callback: Callable[[Any], Any] | None = None
5048
"""A method to further process the value after type conversion."""
5149
expose_value: str = ""
5250
"""Whether value is passed onwards to the command callback and stored in context."""

0 commit comments

Comments
 (0)