Module zut.choices

Polyfills for Django’s Choices classes so that shared libraries may define choice models without depending on Django.

Classes

Choices(new_class_name, /, names, *[, ...])

Class for creating enumerated choices.

IntegerChoices(new_class_name, /, names, *)

Class for creating enumerated integer choices.

TextChoices(new_class_name, /, names, *[, ...])

Class for creating enumerated string choices.