🌐 AI搜索 & 代理 主页
Skip to content

Commit 12d53f6

Browse files
authored
Fix Typo attr -> attrs (#20400)
In the example, `attrs` is used, even though `attr` is imported. Picking either one isn't important, but the code gives a runtime error when the other one is used.
1 parent 34373e3 commit 12d53f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/additional_features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Type annotations can be added as follows:
135135

136136
.. code-block:: python
137137
138-
import attr
138+
import attrs
139139
140140
@attrs.define
141141
class A:

0 commit comments

Comments
 (0)