Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jul 25, 2024
1 parent badc14c commit bd2a2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fgpyo/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ def get_parser() -> partial: # noqa: C901
nonlocal type_
nonlocal parsers
try:
return functools.partial(parsers[type_])
parser: Callable[[str], Any] = parsers[type_]
return functools.partial(parser)
except KeyError as ex:
if (
type_ in [str, int, float]
Expand Down

0 comments on commit bd2a2ae

Please sign in to comment.