types-dataclasses
Typing stubs for dataclasses
What it is and what it does
types-dataclasses is a PEP 561 type stub package that provides type information for Python's dataclasses module. It was designed to help static type checkers like mypy, PyCharm, and pytype understand and validate code that uses dataclasses.
The package is explicitly unmaintained and has not been updated since 2022-06-30. For modern Python versions, the dataclasses module in the standard library includes native type support, making this stub package potentially redundant for most users.
Use it for:
- Type-checking projects that use dataclasses on Python versions where the standard library lacks type annotations
- Providing type hints to static checkers when working with codebases that cannot upgrade Python versions
- Ensuring type safety in projects that must maintain compatibility with older Python releases
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for Python's dataclasses module, enabling static type checkers like mypy and PyCharm to validate code using dataclasses.
No. This package is explicitly unmaintained and has not been updated since 2022-06-30. Modern Python versions include dataclasses in the standard library with built-in type support. Install only if maintaining legacy code on an older Python version that lacks native dataclasses type annotations.
Install
types-dataclasses on PyPI
pip
pip install types-dataclassesuv
uv add types-dataclassespoetry
poetry add types-dataclassesInstalling types-dataclasses
Before you install
Low install friction with no runtime dependencies. However, the package is explicitly unmaintained and has not been updated since 2022-06-30, over 1506 days ago.
License in practice
Licensed under Apache-2.0, a permissive license that poses no restrictions on use or redistribution in most contexts.
Quickstart
pip install types-dataclasses
Then configure your type checker (mypy, PyCharm, pytype) to use the stubs when checking code that imports from dataclasses.
Verify before relying
- Whether this stub package remains necessary for type checking on current Python versions, given dataclasses is now in the standard library
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,506 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 757,150/month — #5,137 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_dataclasses-0.6.6-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
data-science-typesProvides PEP-561-compliant type stubs for…
permissive · top 15,000 on PyPI
pyspark-stubsProvides type stubs for PySpark to enable…
permissive · top 15,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI
types-atomicwritesProvides type stubs for the atomicwrites…
permissive · top 15,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-maxminddbProvides type stubs for the maxminddb package,…
permissive · top 15,000 on PyPI
types-appdirsProvides type stubs for the appdirs package to…
permissive · top 15,000 on PyPI
types-ipaddressProvides type stubs for Python's standard…
permissive · top 15,000 on PyPI
types-futuresProvides type stubs for the futures package,…
permissive · top 15,000 on PyPI