Skip to content

Commit

Permalink
fix invalid type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu committed Sep 23, 2024
1 parent fb9164d commit 2edfe39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feud/_internal/_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ def build_command_state( # noqa: PLR0915
else:
doc = docstring_parser.parse_from_object(func)

state.description: str | None = _docstring.get_description(doc)
state.description = _docstring.get_description(doc)

sig: inspect.Signature = inspect.signature(func, eval_str=True)

for param, spec in sig.parameters.items():
meta = ParameterSpec()
meta.hint: type = spec.annotation
meta.hint = spec.annotation

# get renamed parameter if @feud.rename used
name: str = state.names["params"].get(param, param)
Expand Down

0 comments on commit 2edfe39

Please sign in to comment.