types-WTForms
Typing stubs for WTForms
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; type checking requires mypy 2.1.0+ or pyright 1.1.409+ to be installed separately.
- Low friction installation with a single runtime dependency (MarkupSafe).
- Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects without restriction.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 155,509 downloads/mo, #10,812 on PyPI
Alternatives
Verify before relying
pip install types-wtforms
# In your code, type checkers will now understand WTForms imports:
import wtforms
form = wtforms.Form()- 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
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 on it.
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
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.
Requires Python 3.10 or later; type checking requires mypy 2.1.0+ or pyright 1.1.409+ to be installed separately.
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()
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 packageMarkupSafe |
| 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 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_wtforms-3.2.1.20260518-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “wtforms type stubs”
- types-WTFormsProvides type stubs for WTForms, enabling type checkers like mypy and…
- WTForms-ComponentsExtends WTForms with additional field types, validators, and widgets…
- flask-mongoengineFlask-MongoEngine integrates MongoEngine document models with Flask,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-pexpect · types-mock · types-greenlet · WTForms-Components · types-Markdown · WTForms · WTForms-JSON · types-polib · types-qrcode · types-croniter