isTuple Any, *args: type, strict: bool = True) bool[source]

Determine if obj is a tuple of a certain signature.

  • obj (object) – The object to check

  • *args (type) – Each of the suceeding arguments are used to determine the expected type of each element.

Keywoprd Arguments:

Whether the elements of the tuple have to be exactly the type specified or just castable as the type


(bool) – True if obj is a matching tuple.