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

Function _is_skippable

stix/utils/walk.py:15–25  ·  view source on GitHub ↗
(owner, varname, varobj)

Source from the content-addressed store, hash-verified

13
14
15def _is_skippable(owner, varname, varobj):
16 if varname == "_fields" and isinstance(varobj, dict):
17 return True
18
19 if varname == "_parent" and isinstance(owner, ObjectProperties):
20 return True
21
22 if varname in ("__input_namespaces__", "__input_schemalocations__"):
23 return True
24
25 return False
26
27
28def _iter_vars(obj):

Callers 2

iterwalkFunction · 0.85
iterpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected