types-attrs
Typing stubs for attrs
Decision gist · record as of 2026-08-14
No—install this only if you are using attrs before version 18.2.0. For modern attrs (18.2.0 and later), uninstall this package and rely on attrs' native type annotations instead. The description explicitly recommends this approach.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only needed for attrs versions before 18.2.0; attrs 18.2.0 and later include native type annotations.
- Low install friction with a pure-wheel distribution.
- Maintenance is active with recent repository commits, though the package itself has not been updated since 2021-06-06; this is expected for a stub package that tracks typeshed.
License · maintenance · safety
Apache-2.0 license (permissive) — Apache-2.0 permissive license allows use in most projects without restriction.
last release 2021-06-06 (1895 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 194,600 downloads/mo, #9,828 on PyPI
Alternatives
Verify before relying
pip install types-attrs
Then use with mypy or other PEP 561-compatible type checkers in your project configuration.- Whether this stub package remains actively maintained in typeshed for modern attrs versions.
- Compatibility matrix with current attrs releases and whether native annotations have fully superseded this package.
What it is and what it does
types-attrs is a PEP 561 type stub package auto-generated from typeshed that provides type information for the attrs library. It allows static type checkers—mypy, PyCharm, pytype, and others—to understand and validate code that uses attrs, catching type errors before runtime.
The package has no runtime dependencies and installs as a pure wheel. However, the description notes that attrs itself has included type annotations since version 18.2.0, making this stub package potentially unnecessary for users on newer attrs versions. The package has not been updated since 2021-06-06, which aligns with its role as a legacy compatibility shim.
Use it for
- Type-check attrs-based code with mypy or other PEP 561-compatible type checkers when using older attrs versions.
- Provide IDE type hints in PyCharm or other editors for attrs classes and decorators.
- Validate attrs usage in a codebase that requires strict static type analysis.
- Support type checking in projects pinned to attrs versions before 18.2.0.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—install this only if you are using attrs before version 18.2.0.
For modern attrs (18.2.0 and later), uninstall this package and rely on attrs' native type annotations instead. The description explicitly recommends this approach.
Install
types-attrs on PyPI
Before you install
Low install friction with a pure-wheel distribution. Maintenance is active with recent repository commits, though the package itself has not been updated since 2021-06-06; this is expected for a stub package that tracks typeshed.
Only needed for attrs versions before 18.2.0; attrs 18.2.0 and later include native type annotations.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction.
Quickstart
pip install types-attrs
Then use with mypy or other PEP 561-compatible type checkers in your project configuration.
Verify before relying
- Whether this stub package remains actively maintained in typeshed for modern attrs versions.
- Compatibility matrix with current attrs releases and whether native annotations have fully superseded this package.
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,895 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 194,600 / month, #9,828 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_attrs-19.1.0-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 › “type stubs for attrs”
- types-attrsProvides PEP 561 type stubs for the attrs package, enabling type…
- desertDesert generates marshmallow serialization schemas automatically from…
- jsonsConverts Python objects (dataclasses, attrs classes, and plain…
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-backports · types-MarkupSafe · types-maxminddb · types-orjson · types-click · types-dataclasses · types-tornado · types-jwt · data-science-types · pybind11-stubgen