Fix need type annotation error

This commit is contained in:
Dan Yeaw 2022-11-19 22:19:55 -05:00
parent d4d0ece49e
commit d61f970c33
No known key found for this signature in database
GPG Key ID: 86B9FEF88B780F2B

View File

@ -134,5 +134,5 @@ class FunctionDispatcher(Generic[T]):
def _arity(argspec: inspect.FullArgSpec) -> int:
"""Determinal positional arity of argspec."""
args = argspec.args or []
defaults = argspec.defaults or []
defaults: tuple[Any, ...] | list = argspec.defaults or []
return len(args) - len(defaults)