--- id: types-wtforms version: "3.2.1.20260518" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-WTForms — Typing stubs for WTForms License: permissive · Maintenance: active · Downloads: 155.5K/mo ## 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 above — 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 pip install types-wtforms uv add types-wtforms poetry add types-wtforms ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 155.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags wtforms type stubs, type checking wtforms, mypy wtforms annotations, pyright wtforms types, wtforms type hints, static type checking forms, wtforms type safety, type-stubs, type-checking, wtforms [View on SkillFed](https://skillfed.io/packages/types-wtforms) · [View on PyPI](https://pypi.org/project/types-wtforms/)