mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix missing import in dataclass code snippet (GH-29214)
field was not imported. It has been added now.
This commit is contained in:
parent
6b9f27dd0b
commit
ad4e8d2b87
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue