check_patch_attrs

function of dascore.utils.patch source

check_patch_attrs(
    patch: Patch ,
    required_attrs: dict[dict[str, Any], str, collections.abc.Sequence[str], None] ,
)-> ‘PatchType’

Check for expected attributes.

Parameters

Parameter Description
patch The patch to validate
required_attrs The expected attrs. Can be a sequence or mapping. If sequence, only
check that attrs exist. If mapping also check that values are equal.