Skip to content

Commit 5c040f3

Browse files
chsachshynek
andauthored
fields needs to be imported in examples (#921)
neither attrs as a whole nor field is imported from attrs. Therefore the example using field does not work if one goes through the examples step by step. either import fields from the beginning (as suggested) or in the example using fields. Co-authored-by: Hynek Schlawack <hs@ox.cx>
1 parent 656ce11 commit 5c040f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The simplest possible usage is:
99

1010
.. doctest::
1111

12-
>>> from attrs import define
12+
>>> from attrs import define, field
1313
>>> @define
1414
... class Empty:
1515
... pass

0 commit comments

Comments
 (0)