colour.utilities.attest#

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

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

Parameters:
  • condition (bool | DTypeBoolean) – Condition to attest/assert.

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