types-WTForms
Typing stubs for WTForms
What it is and what it does
This is a type stub package that bridges WTForms and static type checkers. It provides type annotations for the WTForms library, allowing mypy, pyright, and other type checkers to understand WTForms code and catch type errors at development time rather than runtime. The stubs are maintained as part of the typeshed project and are generated from typeshed's authoritative stub definitions.
You install it alongside WTForms in your development environment. It has no runtime effect—type checkers read the stubs to validate your code. The package depends only on MarkupSafe, which WTForms itself requires, so installation is lightweight. It's actively maintained and tested against current type checker versions.
Use it for:
- Enable mypy or pyright to type-check Flask or Django applications that use WTForms for form validation
- Catch type errors in custom form field definitions or validators before runtime
- Provide IDE autocomplete and inline type hints when working with WTForms classes and methods
- Validate form data handling in web frameworks where type safety improves code reliability
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for WTForms, enabling type checkers like mypy and pyright to validate code that uses WTForms for form handling and validation.
Yes, if you use WTForms and want static type checking. Install it in your development environment (not production) to enable type checkers to validate WTForms code. It has low friction, no security issues, and is actively maintained. Skip it only if you don't use a type checker or don't use WTForms.
Install
types-wtforms on PyPI
pip
pip install types-wtformsuv
uv add types-wtformspoetry
poetry add types-wtformsInstalling types-WTForms
Before you install
Low friction installation with a single runtime dependency (MarkupSafe). Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects without restriction.
Quickstart
pip install types-wtforms
# In your code, type checkers will now understand WTForms imports:
import wtforms
form = wtforms.Form()
Requires Python 3.10 or later; type checking requires mypy 2.1.0+ or pyright 1.1.409+ to be installed separately.
Verify before relying
- Whether type coverage is complete for all WTForms 3.2.1 APIs or if gaps remain
- Compatibility with WTForms versions outside the 3.2.1 range
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — MarkupSafe |
| Maintenance | actively maintained — 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 155,509/month — #10,812 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_wtforms-3.2.1.20260518-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-pexpectProvides type stubs for pexpect, enabling type…
permissive · top 5,000 on PyPI
types-mockProvides type stubs for the mock library,…
permissive · top 5,000 on PyPI
types-greenletProvides type stubs for the greenlet package,…
permissive · top 15,000 on PyPI
WTForms-ComponentsExtends WTForms with additional field types,…
permissive · top 15,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
WTFormsWTForms provides form validation, rendering,…
permissive · top 5,000 on PyPI
WTForms-JSONAdds JSON parsing and validation support to…
permissive · top 15,000 on PyPI
types-polibProvides type stubs for the polib package,…
permissive · top 15,000 on PyPI
types-qrcodeProvides type stubs for the qrcode package,…
permissive · top 15,000 on PyPI
types-croniterProvides type stubs for the croniter package,…
permissive · top 5,000 on PyPI