Return if the data is a sequence but not a string.
(data)
| 15 | |
| 16 | |
| 17 | def 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 | |
| 22 | class InconsistentDtypeException(DGLError): |
no outgoing calls
no test coverage detected