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

Function strictly_equal

xmlschema/utils/decoding.py:67–69  ·  view source on GitHub ↗

Checks if the objects are equal and are of the same type.

(obj1: object, obj2: object)

Source from the content-addressed store, hash-verified

65
66
67def strictly_equal(obj1: object, obj2: object) -> bool:
68 """Checks if the objects are equal and are of the same type."""
69 return obj1 == obj2 and type(obj1) is type(obj2)
70
71
72def raw_encode_value(value: DecodedValueType) -> Optional[str]:

Callers 2

raw_decodeMethod · 0.90

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…