is_set()
Check if obj is a set.
Implementation
Args: obj: The object to check Returns: True if obj is a set, False otherwise
Example
is_set(set([1, 2, 3]))
Expected output: True
Source Code
def is_set(obj: Any) -> bool:
return isinstance(obj, set)