Skip to main content

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

NameTypeRequired
Description
annoAnyThe annotation to be checked.

Returns

NameType
Description
v_1boolA flag. It is True when the given annotation is a multi-variable tuple.