summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-12-31 12:28:36 (GMT)
committerGitHub <noreply@github.com>2022-12-31 12:28:36 (GMT)
commitf7ad4ffa563fbe14d6b0020c45720bebde73de62 (patch)
treefca5b3348f1378b877d6f3887995e1669e150440 /Doc
parent504aa92b70d3902f373dc5a6ca0b3ddc1ad233d5 (diff)
downloadcpython-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.rst2
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: