[Python-checkins] Fix missing import in dataclass code snippet (GH-29214)
Mariatta
webhook-mailer at python.org
Mon Feb 14 15:02:04 EST 2022
https://github.com/python/cpython/commit/ad4e8d2b871c4f5bce27520627bbb2e0e544bc24
commit: ad4e8d2b871c4f5bce27520627bbb2e0e544bc24
branch: main
author: Leo <LeoHuckvale at users.noreply.github.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2022-02-14T12:01:53-08:00
summary:
Fix missing import in dataclass code snippet (GH-29214)
field was not imported. It has been added now.
files:
M Doc/whatsnew/3.10.rst
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 806170ede1596..905305be3176c 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -1019,7 +1019,7 @@ You can specify keyword-only on a per-field basis:
.. code-block:: python
- from dataclasses import dataclass
+ from dataclasses import dataclass, field
@dataclass
class Birthday:
More information about the Python-checkins
mailing list