UniCoreFW

is_arguments()

Check if obj is an arguments object (tuple in Python).

Implementation

Args: obj: The object to check Returns: True if obj is a tuple, False otherwise

Example

is_arguments((1, 2, 3))

Expected output: True

Source Code

def is_arguments(obj: Any) -> bool: return isinstance(obj, tuple)