types-webencodings
Typing stubs for webencodings
What it is and what it does
This is a type stub package that provides static type information for the webencodings library. It allows type checkers like mypy 1.20.0 and pyright 1.1.408 to understand and validate the types of webencodings functions and classes when they are used in your code. The stubs are maintained as part of the typeshed project and are tested against specific versions of both the type checkers and the webencodings library itself.
Type stubs are useful when a library either lacks inline type annotations or when you want to use a specific, curated set of type definitions. This package targets webencodings 0.5.* and requires Python 3.10 or later. Since it has no runtime dependencies, it adds minimal overhead to your development environment—it's purely for static analysis during type checking.
Use it for:
- Enable mypy or pyright to type-check code using webencodings for character encoding detection
- Provide IDE autocomplete and type hints when working with webencodings in supported editors
- Ensure type safety in projects that depend on webencodings for web standards compliance
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the webencodings library, enabling static type checkers like mypy and pyright to validate code that uses webencodings.
Yes, if you use webencodings and want static type checking. Install it alongside webencodings when you run mypy or pyright in your CI/type-checking pipeline. It has no runtime cost and is actively maintained. If webencodings already provides inline type hints, this package may be redundant—verify your webencodings version first.
Install
types-webencodings on PyPI
pip
pip install types-webencodingsuv
uv add types-webencodingspoetry
poetry add types-webencodingsInstalling types-webencodings
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of the typeshed project with recent updates.
License in practice
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.
Quickstart
pip install types-webencodings
import webencodings
# Type checkers now understand webencodings types
Requires Python 3.10 or later
Verify before relying
- Whether this package is required as a separate install or if webencodings itself bundles inline type hints in recent versions
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 128 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,965,605/month — #1,803 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_webencodings-0.5.0.20260408-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-python-joseProvides type hints for the python-jose…
permissive · top 5,000 on PyPI
types-retryProvides type hints for the retry package,…
permissive · top 5,000 on PyPI
webencodingsImplements the WHATWG Encoding standard to map…
permissive · top 1,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-nanoidProvides type hints for the nanoid package,…
permissive · top 15,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI
types-pyaudioProvides type hints for the pyaudio library,…
permissive · top 15,000 on PyPI