types-boltons
Typing stubs for boltons
What it is and what it does
This is a type stub package that bridges the gap between the boltons utility library and static type checkers. Type stubs are files that describe the types and signatures of a library's public API without containing runtime code, allowing tools like mypy and pyright to validate your code against boltons even if boltons itself doesn't ship with type hints. The stubs are maintained as part of the typeshed project, a centralized repository of type information for popular Python packages.
You install types-boltons alongside boltons in your development environment. Once installed, your type checker will understand boltons' APIs and catch type errors in code that uses it. The package has no runtime dependencies and is lightweight—it's purely metadata for type checkers. It's tested against recent versions of mypy and pyright to ensure accuracy.
Use it for:
- Add type checking to a project that uses boltons without waiting for boltons itself to add native type hints.
- Catch type errors in boltons utility calls (e.g., dictutils, tableutils) during CI/CD before runtime.
- Enable IDE autocomplete and type inference for boltons APIs in editors that support type stubs.
- Maintain strict type checking in a codebase that depends on boltons for data structures or utilities.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the boltons library, enabling static type checkers like mypy and pyright to validate code that uses boltons without requiring the library itself to be installed.
Yes, if you use boltons and want static type checking. It's a lightweight stub package with no runtime overhead, active maintenance, and permissive licensing. Install it in your development environment alongside boltons to unlock type safety for boltons code.
Install
types-boltons on PyPI
pip
pip install types-boltonsuv
uv add types-boltonspoetry
poetry add types-boltonsInstalling types-boltons
Before you install
Low friction—a pure stub package with no runtime dependencies. Released 21 days ago with active maintenance; tested against mypy 2.3.0 and pyright 1.1.411.
License in practice
Licensed under Apache-2.0 (permissive), so it can be used freely in commercial and open-source projects without significant restrictions.
Quickstart
pip install types-boltons
# Then use boltons in your code; mypy or pyright will now type-check it:
import boltons.dictutils
d = boltons.dictutils.OrderedMultiDict()
Requires Python >=3.10; type checking requires mypy, pyright, or another compatible type checker to be installed separately.
Verify before relying
- Whether the stubs cover all public APIs in boltons 26.1.* or only a subset.
- Whether this package is automatically kept in sync when boltons releases updates.
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 — 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 146,575/month — #11,096 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_boltons-26.1.0.20260724-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-bleachProvides type stubs for the bleach HTML…
permissive · top 5,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-httplib2Provides type stubs for the httplib2 HTTP…
permissive · top 5,000 on PyPI
boltonsBoltons provides a collection of over 230…
permissive · top 1,000 on PyPI
types-pywin32Provides type stubs for pywin32, enabling type…
permissive · top 15,000 on PyPI
types-sixProvides type hints for the six Python 2/3…
permissive · top 5,000 on PyPI
types-aws-xray-sdkProvides type stubs for aws-xray-sdk, enabling…
permissive · top 15,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-waitressProvides type stubs for the waitress WSGI…
permissive · top 15,000 on PyPI