MCPcopy Index your code
hub / github.com/STIXProject/python-stix / is_entitylist

Function is_entitylist

stix/utils/__init__.py:155–160  ·  view source on GitHub ↗

Returns true if `entity` is an instance of :class:`.EntityList` or :class:`mixbox.entities.EntityList`.

(entity)

Source from the content-addressed store, hash-verified

153
154
155def is_entitylist(entity):
156 """Returns true if `entity` is an instance of :class:`.EntityList`
157 or :class:`mixbox.entities.EntityList`.
158
159 """
160 return isinstance(entity, (EntityList, stix.EntityList))
161
162
163def is_typedlist(entity):

Callers 2

iterwalkFunction · 0.85
iterpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected