ImageFile.Stoner__tools__tests__isTuple

ImageFile.Stoner__tools__tests__isTuple(*args: type, strict: bool = True) bool

Determine if obj is a tuple of a certain signature.

Parameters
  • 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:
strict(bool):

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

Returns

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