colour.utilities.attest#

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

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

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

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