colour.utilities.is_sibling#

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

Determine whether the type of the specified element is present in the specified mapping types.

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

  • mapping (Mapping) – Mapping types to check against.

Returns:

Whether the type of the specified element is present in the specified mapping types.

Return type:

bool