Skip to content

[WTForms] Fix None defaults, translations_cache key type, and DateTimeLocalField.tz - #16938

Merged
srittau merged 1 commit into
python:mainfrom
joshanjohn:fix/wtforms-16828
Dec 1, 2026
Merged

srittau merged 1 commit into
python:mainfrom
joshanjohn:fix/wtforms-16828

Conversation

@joshanjohn

Copy link
Copy Markdown
Contributor

Fixes #16828

Allow None on Field.render_kw, DefaultMeta.get_translations(), DateRange.message, and SelectField.invalid_choice_message, update DefaultMeta.translations_cache key type to tuple[str, ...] | None, and add the missing DateTimeLocalField.tz attribute.

Upstream references:

Agent used: Antigravity (Gemini 4 Hydrogen (Medium))

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit df25c74 into python:main Dec 1, 2026
74 checks passed
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.

[WTForms] render_kw, get_translations() and some messages can be None

2 participants