Skip to content

Commit 3f891cf

Browse files
committed
Adjust for review comment
1 parent 3203360 commit 3f891cf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/how-does-it-work.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
*attrs* isn't the first library that aims to simplify class definition in Python.
88
But its **declarative** approach combined with **no runtime overhead** lets it stand out.
99

10-
Once you apply the `@attrs.define` (or `@attr.s`) decorator to a class, *attrs* searches the class object for instances of `attrs.field`s.
10+
Once you apply the `@attrs.define` (or `@attr.s`) decorator to a class, *attrs* searches the class object for {doc}`types` and instances of `attrs.field`s.
1111
Internally they're a representation of the data passed into `field` along with a counter to preserve the order of the attributes.
12-
Alternatively, it's possible to define them using {doc}`types`.
1312

1413
In order to ensure that subclassing works as you'd expect it to work, *attrs* also walks the class hierarchy and collects the attributes of all base classes.
1514
Please note that *attrs* does *not* call `super()` *ever*.

0 commit comments

Comments
 (0)