feat: add dataclasses to Built-in Classes Enhancement

Comparisons treat dataclasses as the default for class boilerplate and attrs as the upgrade for validators, converters, and slots.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-11-08 20:41:37 +08:00
co-authored by Claude
parent b23d89509c
commit 6b39e514e1
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1051,6 +1051,7 @@ _Implementations of Python._
_Libraries for enhancing Python built-in classes._
- Class Boilerplate
- [dataclasses](https://docs.python.org/3/library/dataclasses.html) - (Python standard library) Adds generated special methods such as `__init__()` and `__repr__()` to your classes.
- [attrs](https://github.com/python-attrs/attrs) - Writes `__init__`, `__eq__`, `__repr__`, and other boilerplate methods for your classes.
- Mappings
- [python-box](https://github.com/cdgriffith/Box) - Python dictionaries with advanced dot-notation access.
+1
View File
@@ -6,6 +6,7 @@
"concurrent-futures": { "package": null, "reason": "stdlib module" },
"conda": { "package": null, "reason": "installed via Miniforge or Anaconda installers; PyPI conda is a stale 2017 upload" },
"cpython": { "package": null, "reason": "not pip-installable; the cpython PyPI name was squatted" },
"dataclasses": { "package": null, "reason": "stdlib module; PyPI dataclasses is the Python 3.6 backport" },
"devpi": { "package": "devpi-server", "reason": "devpi is a deprecated metapackage; the server package carries real usage" },
"difflib": { "package": null, "reason": "stdlib module" },
"django-ai-plugins": { "package": null, "reason": "GitHub-only so far; young project, remap if it publishes" },