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)
| 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: |
no outgoing calls
no test coverage detected