mirror of https://github.com/python/cpython
gh-100633 Tutorial: Fix dataclasses import (#100638)
import dataclass not dataclasses from dataclasses
This commit is contained in:
parent
636e9dd23f
commit
98308dbeb1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue