Skip to content

Commit ad4e8d2

Browse files
authored
Fix missing import in dataclass code snippet (GH-29214)
field was not imported. It has been added now.
1 parent 6b9f27d commit ad4e8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ You can specify keyword-only on a per-field basis:
10191019
10201020
.. code-block:: python
10211021
1022-
from dataclasses import dataclass
1022+
from dataclasses import dataclass, field
10231023
10241024
@dataclass
10251025
class Birthday:

0 commit comments

Comments
 (0)