Skip to content

Conversation

@tempusfrangit
Copy link
Member

Ensure choices are not duplicated, as that makes StrEnum impossible to resolve. Each element should only exist once.

Ensure choices are not duplicated, as that makes StrEnum impossible to
resolve. Each element should only exist once.

The deduplicate must be done at the schema level and therefore a
decorator is utilized to mutate duplicated choices passed to Input().
@tempusfrangit
Copy link
Member Author

Not exactly sure why python 3.12 fails with pydantic 1.

Clearly something is super wonky since other python versions succeeded.

@tempusfrangit tempusfrangit marked this pull request as draft October 16, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants