Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_is_generic_collection_with_generic_collection():
assert is_generic_collection(List[int])
def test_is_generic_collection_with_union():
assert not is_generic_collection(Union[int, str])
def test_is_generic_collection_with_non_generic_collection():
assert not is_generic_collection(list)