colour.utilities.is_sibling

colour.utilities.is_sibling(element: Any, mapping: Mapping) bool[source]

Return whether given element type is present in given mapping types.

Parameters
  • element (Any) – Element to check whether its type is present in the mapping types.

  • mapping (Mapping) – Mapping types.

Returns

Whether given element type is present in given mapping types.

Return type

bool