decorators module#

early(method)[source]#

Call this method before calling other initializers in this class.

Parameters:

method (Callable)

late(method)[source]#

Call this method after calling all other initializers in this class.

Parameters:

method (Callable)

identityclass(cls=None, **kwargs)[source]#
Overloads:
  • cls (type[T]) → type[T]

  • kwargsCallable[[type[T]], type[T]]

Parameters:

cls (type[T] | None)

Decorator to make a dataclass but setting eq and hash to object identity. This allows a dataclass to serve as a structural jitx type.