MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / is_consistent

Method is_consistent

xmlschema/validators/elements.py:1220–1228  ·  view source on GitHub ↗

Element Declarations Consistent check between two element particles. Ref: https://www.w3.org/TR/xmlschema-1/#cos-element-consistent :returns: `True` if there is no inconsistency between the particles, `False` otherwise,

(self, other: SchemaElementType, strict: bool = True)

Source from the content-addressed store, hash-verified

1218 return False
1219
1220 def is_consistent(self, other: SchemaElementType, strict: bool = True) -> bool:
1221 """
1222 Element Declarations Consistent check between two element particles.
1223
1224 Ref: https://www.w3.org/TR/xmlschema-1/#cos-element-consistent
1225
1226 :returns: `True` if there is no inconsistency between the particles, `False` otherwise,
1227 """
1228 return self.name != other.name or self.type is other.type
1229
1230 def is_single(self) -> bool:
1231 if self.parent is None:

Callers 2

is_restrictionMethod · 0.95
check_modelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected