ImageFile.isTuple¶
- ImageFile.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 succeeding 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.