summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorOwain Davies <116417456+OTheDev@users.noreply.github.com>2022-12-31 10:23:18 (GMT)
committerGitHub <noreply@github.com>2022-12-31 10:23:18 (GMT)
commit98308dbeb110198ebe28bdb7720d3671b3e7f57b (patch)
tree4032e5548b7df2dc810f206aa552c3d5a1dbee29 /Doc/tutorial/classes.rst
parent636e9dd23f88c701eecf91156835fe0fc8b1feb6 (diff)
downloadcpython-98308dbeb110198ebe28bdb7720d3671b3e7f57b.zip
cpython-98308dbeb110198ebe28bdb7720d3671b3e7f57b.tar.gz
cpython-98308dbeb110198ebe28bdb7720d3671b3e7f57b.tar.bz2
gh-100633 Tutorial: Fix dataclasses import (#100638)
import dataclass not dataclasses from dataclasses
Diffstat (limited to 'Doc/tutorial/classes.rst')
-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 a206ba3..1168011 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -741,7 +741,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: