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

Function is_dictable

stix/utils/__init__.py:260–262  ·  view source on GitHub ↗

Returns ``True`` if `obj` has a ``to_dict()`` method.

(obj)

Source from the content-addressed store, hash-verified

258
259
260def is_dictable(obj):
261 """Returns ``True`` if `obj` has a ``to_dict()`` method."""
262 return hasattr(obj, "to_dict")
263
264
265def is_timestamp(obj):

Callers 2

dict_iterFunction · 0.85
to_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected