Skip to content

Make International Street Language a real enum, case-insensitive - #97

Merged
RyanLCox1 merged 1 commit into
masterfrom
ryan/case_insensitive
Aug 6, 2026
Merged

Make International Street Language a real enum, case-insensitive#97
RyanLCox1 merged 1 commit into
masterfrom
ryan/case_insensitive

Conversation

@andyjohnsonsmarty

Copy link
Copy Markdown
Contributor

LanguageMode is now an Enum (NATIVE/LATIN) instead of plain module-level string constants, so invalid values can be validated against a closed set. Added LanguageMode.from_value() to resolve a raw string case-insensitively (eg. "Latin", "NATIVE"), and validated/normalized Lookup.language through it in ensure_enough_info and Client.build_request.

LanguageMode is now an Enum (NATIVE/LATIN) instead of plain module-level
string constants, so invalid values can be validated against a closed
set. Added LanguageMode.from_value() to resolve a raw string
case-insensitively (eg. "Latin", "NATIVE"), and validated/normalized
Lookup.language through it in ensure_enough_info and Client.build_request.
@RyanLCox1
RyanLCox1 merged commit 26a61ff into master Aug 6, 2026
4 checks passed
@RyanLCox1
RyanLCox1 deleted the ryan/case_insensitive branch August 6, 2026 20:28
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.

2 participants