colour.utilities.attest#

colour.utilities.attest(condition: Union[bool, DTypeBoolean], message: str = '')[source]#

Provide the assert statement functionality without being disabled by optimised Python execution.

Parameters:
  • condition (Union[bool, DTypeBoolean]) – Condition to attest/assert.

  • message (str) – Message to display when the assertion fails.