diff --git a/fgpyo/util/inspect.py b/fgpyo/util/inspect.py index a2f655be..dcca7979 100644 --- a/fgpyo/util/inspect.py +++ b/fgpyo/util/inspect.py @@ -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]