skillfed

types-dataclasses

Typing stubs for dataclasses

types-dataclasses v0.6.6 757.1K downloads/30d#5,137 on PyPI5,108
Permissive license Apache-2.0 license Active released

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

uv

uv add types-dataclasses

poetry

poetry add types-dataclasses

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only

Tags

dataclasses type stubsmypy dataclasses typingtype checking dataclassespep 561 stubsstatic type hints dataclasses
type-stubsunmaintained

More Software Development packages