Skip to content

Commit 98308db

Browse files
authored
gh-100633 Tutorial: Fix dataclasses import (#100638)
import dataclass not dataclasses from dataclasses
1 parent 636e9dd commit 98308db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ Sometimes it is useful to have a data type similar to the Pascal "record" or C
741741
"struct", bundling together a few named data items. The idiomatic approach
742742
is to use :mod:`dataclasses` for this purpose::
743743

744-
from dataclasses import dataclasses
744+
from dataclasses import dataclass
745745

746746
@dataclass
747747
class Employee:

0 commit comments

Comments
 (0)