types-PyJWT
Typing stubs for PyJWT
Decision gist · record as of 2026-08-14
No for most new projects — PyJWT 2.0.0+ includes its own type annotations. Yes-with-conditions if you maintain legacy code using PyJWT versions older than 2.0.0 and need type checking support. The package itself is stable and permissively licensed, but its lack of updates since June 2021 means coverage of newer PyJWT features is uncertain.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only useful if you are using PyJWT versions older than 2.0.0; PyJWT 2.0.0+ includes its own type annotations and this stub package should be uninstalled to avoid conflicts.
- Low friction install as a wheel-only package.
- The project is actively maintained via typeshed, though this specific stub package has not been updated since June 2021 — check whether your PyJWT version is older than 2.0.0, since newer PyJWT includes its own type annotations.
License · maintenance · safety
Apache-2.0 license (permissive) — Apache-2.0 is permissive; you can use this package in commercial and proprietary code without restriction.
last release 2021-06-17 (1884 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 325,444 downloads/mo, #7,586 on PyPI
Alternatives
Verify before relying
pip install types-PyJWT
Type checkers will then understand types-cryptography and PyJWT imports in your code.- Whether this stub package remains synchronized with current PyJWT releases and typeshed updates despite the 2021 release date
- Compatibility with PyJWT versions released after 2021 and whether the stub definitions cover all current API surface
- Whether installing alongside PyJWT 2.0.0+ causes actual conflicts or is merely redundant
What it is and what it does
types-PyJWT is a PEP 561 type stub package that provides type hints for the PyJWT library. It allows static type checkers like mypy, PyCharm, and pytype to understand and validate code that uses PyJWT for JWT token handling. The stubs are auto-generated from the typeshed repository and enable developers to catch type-related errors at development time rather than runtime.
This package is primarily useful for projects still using PyJWT versions older than 2.0.0. Since PyJWT 2.0.0 and later versions include their own type annotations, installing this stub package alongside newer PyJWT versions is unnecessary and may cause conflicts. The package depends only on types-cryptography, which provides type hints for the underlying cryptography library.
Use it for
- Enable mypy or PyCharm type checking on legacy code using PyJWT versions before 2.0.0
- Catch type errors during development in older PyJWT projects
- Provide IDE autocomplete and type hints for PyJWT API calls in pre-2.0.0 codebases
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No for most new projects — PyJWT 2.0.0+ includes its own type annotations.
Yes-with-conditions if you maintain legacy code using PyJWT versions older than 2.0.0 and need type checking support. The package itself is stable and permissively licensed, but its lack of updates since June 2021 means coverage of newer PyJWT features is uncertain.
Install
types-pyjwt on PyPI
Before you install
Low friction install as a wheel-only package. The project is actively maintained via typeshed, though this specific stub package has not been updated since June 2021 — check whether your PyJWT version is older than 2.0.0, since newer PyJWT includes its own type annotations.
Only useful if you are using PyJWT versions older than 2.0.0; PyJWT 2.0.0+ includes its own type annotations and this stub package should be uninstalled to avoid conflicts.
License in practice
Apache-2.0 is permissive; you can use this package in commercial and proprietary code without restriction.
Quickstart
pip install types-PyJWT
Type checkers will then understand types-cryptography and PyJWT imports in your code.
Verify before relying
- Whether this stub package remains synchronized with current PyJWT releases and typeshed updates despite the 2021 release date
- Compatibility with PyJWT versions released after 2021 and whether the stub definitions cover all current API surface
- Whether installing alongside PyJWT 2.0.0+ causes actual conflicts or is merely redundant
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetypes-cryptography |
| Maintenance | Actively maintained 1,884 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 325,444 / month, #7,586 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseTyping :: Typed |
Evidence: types_PyJWT-1.7.1-py2.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 › “PyJWT type stubs”
- types-PyJWTProvides type stubs for PyJWT to enable static type checking of JWT…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
- types-appdirsProvides type stubs for the appdirs package to enable static type…
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-jwt · types-Flask · types-pkg-resources · types-backports · types-attrs · types-Jinja2 · types-SQLAlchemy · types-geoip2 · pytype · pyspark-stubs