skillfed

types-boltons

Typing stubs for boltons

types-boltons v26.1.0.20260724 146.6K downloads/30d#11,096 on PyPI37
Permissive license Apache-2.0 Active released

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

uv

uv add types-boltons

poetry

poetry add types-boltons

Installing 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

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

Tags

type stubs boltonsboltons typing annotationsmypy boltons supportstatic type checking boltonspyright boltons stubs
type-stubsstatic-analysis

More Software Development packages