skillfed

types-WTForms

Typing stubs for WTForms

types-wtforms v3.2.1.20260518 155.5K downloads/30d#10,812 on PyPI37
Permissive license Apache-2.0 Active released

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-wtforms

uv

uv add types-wtforms

poetry

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 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

wtforms type stubstype checking wtformsmypy wtforms annotationspyright wtforms typeswtforms type hintsstatic type checking formswtforms type safety
type-stubstype-checkingwtforms

More Software Development packages