MCPcopy
hub / github.com/dmlc/dgl / is_listlike

Function is_listlike

python/dgl/utils/internal.py:17–19  ·  view source on GitHub ↗

Return if the data is a sequence but not a string.

(data)

Source from the content-addressed store, hash-verified

15
16
17def is_listlike(data):
18 """Return if the data is a sequence but not a string."""
19 return isinstance(data, Sequence) and not isinstance(data, str)
20
21
22class InconsistentDtypeException(DGLError):

Callers 6

extract_node_subframesFunction · 0.70
extract_edge_subframesFunction · 0.70
apply_eachFunction · 0.70
recursive_applyFunction · 0.70
recursive_apply_pairFunction · 0.70
context_ofFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected