is_tuple

Contents

is_tuple#

discopy.python.is_tuple(typ)[source]#

Whether a given type is tuple or a paramaterised tuple.

Parameters:

typ (type) – The type to check for equality with tuple.

Return type:

bool