From 160d4257993354b3e5a0ec4cf4a50cf7ac197590 Mon Sep 17 00:00:00 2001 From: "C. Sachs" Date: Thu, 3 Feb 2022 11:10:12 +0100 Subject: [PATCH] fields needs to be imported in examples 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. --- docs/examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples.rst b/docs/examples.rst index 08bc52838..5bab02a98 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -9,7 +9,7 @@ The simplest possible usage is: .. doctest:: - >>> from attrs import define + >>> from attrs import define, field >>> @define ... class Empty: ... pass