colour.utils.hash_or_str

colour.utils.hash_or_str(obj: object) int | str

Convert an object into a unique hash.

obj

object to be converted