diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-12-31 12:28:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-31 12:28:36 (GMT) |
commit | f7ad4ffa563fbe14d6b0020c45720bebde73de62 (patch) | |
tree | fca5b3348f1378b877d6f3887995e1669e150440 /Doc | |
parent | 504aa92b70d3902f373dc5a6ca0b3ddc1ad233d5 (diff) | |
download | cpython-f7ad4ffa563fbe14d6b0020c45720bebde73de62.zip cpython-f7ad4ffa563fbe14d6b0020c45720bebde73de62.tar.gz cpython-f7ad4ffa563fbe14d6b0020c45720bebde73de62.tar.bz2 |
gh-100633 Tutorial: Fix dataclasses import (GH-100638)
import dataclass not dataclasses from dataclasses
(cherry picked from commit 98308dbeb110198ebe28bdb7720d3671b3e7f57b)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/classes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 5abb767..30450c7 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -740,7 +740,7 @@ Sometimes it is useful to have a data type similar to the Pascal "record" or C "struct", bundling together a few named data items. The idiomatic approach is to use :mod:`dataclasses` for this purpose:: - from dataclasses import dataclasses + from dataclasses import dataclass @dataclass class Employee: |