horde_sdk.generic_api.decoration¶
Unhashable ¶
Make a class unhashable.
Parameters:
-
cls(Any) –The class to make unhashable.
Returns:
-
Any(type[T]) –The unhashable class.
Source code in horde_sdk/generic_api/decoration.py
is_unhashable ¶
Check if an object is unhashable.
Parameters:
-
obj(Any) –The object to check.
Returns:
-
bool(bool) –True if the object is unhashable, False otherwise.
Source code in horde_sdk/generic_api/decoration.py
Unequatable ¶
Mark a class as unequatable.
Parameters:
-
cls(type[T]) –The class to make unequatable
Returns:
-
type[T]–type[T]: The unequatable class
Source code in horde_sdk/generic_api/decoration.py
is_unequatable ¶
Check if an object is unequatable.
Parameters:
-
obj(Any) –The object to check.
Returns:
-
bool(bool) –True if the object is unequatable, False otherwise.