Fix need type annotation error
This commit is contained in:
parent
d4d0ece49e
commit
d61f970c33
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user