equals

method of dascore.core.patch_meta.PatchMeta source

equals(
    self ,
    other: Any ,
    only_required_attrs: bool = True,
)-> ‘bool’

Whether another object describes the same data.

A patch is not equal to metadata describing it: the one holds the data the other only names.

Parameters

Parameter Description
other The object to compare against.
only_required_attrs If True, compare only the declared attrs, which leaves out
history and anything a caller attached.