colour.utilities.Callback#

class colour.utilities.Callback(name: str, function: Callable)[source]#

Bases: object

Represent a named callback with its associated callable function.

This dataclass encapsulates a callback’s identifying name and its callable function for use in event-driven callback systems.

Parameters:
  • name (str) – Callback identifier used for registration and management.

  • function (Callable) – Callable object to execute when the callback is triggered.

__eq__(other)#

Return self==value.

__hash__ = None#
__init__(name: str, function: Callable) None#
Parameters:
Return type:

None

__repr__()#

Return repr(self).

__weakref__#

list of weak references to the object