$npx skillfedfor your agent

types-Jinja2

Typing stubs for Jinja2

SkipPyPI Software DevelopmentReleased Nov 20212.5M downloads / moApache-2.0 licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — types_Jinja2-2.11.9-py3-none-any.whl
v2.11.9 · released 2021-11-26 · 1 runtime deps: types-MarkupSafe

No, unless you are constrained to Jinja2 < 3.0. For modern projects, Jinja2 3.0+ includes its own type annotations, making this package redundant. The package has not been updated since 2021 and is explicitly marked as superseded in its own documentation. Install only if you cannot upgrade Jinja2 itself.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Only needed if using Jinja2 < 3.0; Jinja2 3.0+ includes its own type stubs, making this package unnecessary.
  • Low friction install with a single lightweight runtime dependency (types-MarkupSafe).
  • However, the package has not been updated since 2021-11-26 and is now superseded—Jinja2 itself has included type annotations since version 3.0, making this package redundant for modern Jinja2 installations.

License · maintenance · safety

Apache-2.0 license (permissive) — Licensed under Apache-2.0 (permissive), which allows free use, modification, and distribution with minimal restrictions. No licensing concerns for most projects.

last release 2021-11-26 (1722 days) · last repo commit 2026-08-14 · 5,108 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,532,677 downloads/mo, #3,018 on PyPI

Verify before relying

pip install types-Jinja2

# In your Python code, type checkers will now understand Jinja2 types
import jinja2
env: jinja2.Environment = jinja2.Environment()
  • Whether the stubs remain accurate for Jinja2 versions released after 2021-11-26
  • Compatibility with the latest versions of type checkers (mypy, PyCharm, pytype)
Same gist for agents: .md · .json

What it is and what it does

types-Jinja2 is a PEP 561 type stub package that provides type information for the Jinja2 templating engine. It allows static type checkers like mypy, PyCharm, and pytype to understand and validate code that uses Jinja2, catching type errors before runtime. The stubs are maintained in the typeshed repository and are sourced from the Python community's central type stub collection.

However, this package is now largely obsolete. Jinja2 itself has included native type annotations since version 3.0, eliminating the need for separate stubs. If you are using Jinja2 3.0 or newer, you should uninstall types-Jinja2 and rely on Jinja2's built-in type support instead. This package remains useful only for projects still using older Jinja2 versions that lack native type information.

Use it for

  • Adding type checking to legacy projects using Jinja2 < 3.0 without native type stubs
  • Enabling mypy or PyCharm to validate Jinja2 template rendering code in older codebases
  • Supporting static analysis in CI/CD pipelines for projects locked to pre-3.0 Jinja2 versions

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No, unless you are constrained to Jinja2 < 3.0.

For modern projects, Jinja2 3.0+ includes its own type annotations, making this package redundant. The package has not been updated since 2021 and is explicitly marked as superseded in its own documentation. Install only if you cannot upgrade Jinja2 itself.

Install

types-jinja2 on PyPI

Before you install

Low friction install with a single lightweight runtime dependency (types-MarkupSafe). However, the package has not been updated since 2021-11-26 and is now superseded—Jinja2 itself has included type annotations since version 3.0, making this package redundant for modern Jinja2 installations.

Only needed if using Jinja2 < 3.0; Jinja2 3.0+ includes its own type stubs, making this package unnecessary.

License in practice

Licensed under Apache-2.0 (permissive), which allows free use, modification, and distribution with minimal restrictions. No licensing concerns for most projects.

Quickstart

pip install types-Jinja2

# In your Python code, type checkers will now understand Jinja2 types
import jinja2
env: jinja2.Environment = jinja2.Environment()

Verify before relying

  • Whether the stubs remain accurate for Jinja2 versions released after 2021-11-26
  • Compatibility with the latest versions of type checkers (mypy, PyCharm, pytype)

Package facts

LicenseApache-2.0 license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
types-MarkupSafe
MaintenanceActively maintained 1,722 days since the last release
Last repo commit
First released
Downloads2,532,677 / month, #3,018 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseTyping :: Typed

Evidence: types_Jinja2-2.11.9-py3-none-any.whl

Tags

Capabilities
jinja2 type stubstype checking jinja2mypy jinja2 typespep 561 stubsjinja2 type hintsstatic type checking templates
Topics
type-stubsdeprecated

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 › “jinja2 type stubs”

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also types-Flask · types-tornado · types-Werkzeug · types-MarkupSafe · types-geoip2 · types-maxminddb · types-attrs · types-jwt · types-orjson · types-PyJWT