is_multival_tuple
FunctionSource
v_1: bool = is_multival_tuple(anno: Any)
Check whether the given annotation is a multi-variable tuple such as
tuple[int, str]
Note that similar cases such as tuple[int] and tuple[int, ...] will be excluded.
Arguments
Requires
| Name | Type | Required | |
|---|---|---|---|
anno | Any | The annotation to be checked. |
Returns
| Name | Type | |
|---|---|---|
v_1 | bool | A flag. It is True when the given annotation is a multi-variable tuple. |