interpreterbase: fix type annotations for typed_pos_args

It takes a tuple of any length, for optargs and varargs, not a tuple of
length 1
This commit is contained in:
Dylan Baker 2021-06-01 12:00:16 -07:00
parent df4d2bd247
commit 8890a62499
1 changed files with 2 additions and 2 deletions

View File

@ -238,8 +238,8 @@ class permittedKwargs:
def typed_pos_args(name: str, *types: T.Union[T.Type, T.Tuple[T.Type, ...]],
varargs: T.Optional[T.Union[T.Type, T.Tuple[T.Type]]] = None,
optargs: T.Optional[T.List[T.Union[T.Type, T.Tuple[T.Type]]]] = None,
varargs: T.Optional[T.Union[T.Type, T.Tuple[T.Type, ...]]] = None,
optargs: T.Optional[T.List[T.Union[T.Type, T.Tuple[T.Type, ...]]]] = None,
min_varargs: int = 0, max_varargs: int = 0) -> T.Callable[..., T.Any]:
"""Decorator that types type checking of positional arguments.