Skip to content

Commit a955efe

Browse files
committed
Explicitly call out DCs in README
1 parent bd0d0cc commit a955efe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.rst

+11
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ The classic APIs (``@attr.s``, ``attr.ib``, ``@attr.attrs``, ``attr.attrib``, an
9191

9292
Please check out `On The Core API Names <https://www.attrs.org/en/latest/names.html>`_ for a more in-depth explanation.
9393

94+
95+
Data Classes
96+
============
97+
98+
On the tin, ``attrs`` might remind you of ``dataclasses`` (and indeed, ``dataclasses`` are a descendant of ``attrs``).
99+
In practice it does a lot more more and is more flexible.
100+
For instance it allows you to define `special handling of NumPy arrays for equality checks <https://www.attrs.org/en/stable/comparison.html#customization>`_, or allows more ways to `plug into the initialization process <https://www.attrs.org/en/stable/init.html#hooking-yourself-into-initialization>`_.
101+
102+
For more details, please refer to our `comparison page <https://www.attrs.org/en/stable/why.html#data-classes>`_.
103+
104+
94105
.. -getting-help-
95106
96107
Getting Help

0 commit comments

Comments
 (0)