Skip to content

Commit 4195388

Browse files
authored
Apply suggestion from @hynek
1 parent 162a109 commit 4195388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/how-does-it-work.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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 {doc}`types` and 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 type hints and instances of `attrs.field`s.
1111
Internally `field`s are a representation of the data passed, along with a counter to preserve the order of the attributes.
1212

1313
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.

0 commit comments

Comments
 (0)