MCPcopy Create free account
hub / github.com/STIXProject/python-stix / is_entity

Function is_entity

stix/utils/__init__.py:148–152  ·  view source on GitHub ↗

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

(entity)

Source from the content-addressed store, hash-verified

146
147
148def is_entity(entity):
149 """Returns true if `entity` is an instance of :class:`.Entity` or
150 :class:`mixbox.Entity`.
151 """
152 return isinstance(entity, (Entity, stix.Entity))
153
154
155def is_entitylist(entity):

Callers 1

yield_and_walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected