Choice#

class nominal.experimental.extractor.types.Choice(choices: Iterable[str])#

Bases: object

Accept an exact, case-sensitive member of a nonempty collection of unique strings.

Snapshot the allowed strings so subsequent collection changes have no effect.

choices: tuple[str, ...]#