check_patch_attrs

function of dascore.utils.patch source

check_patch_attrs(
    patch: Patch ,
    required_attrs: Dict[str, Any] | str | Sequence[str] | None ,
)-> Patch

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.