gh-100633 Tutorial: Fix dataclasses import (#100638)

import dataclass not dataclasses from dataclasses
This commit is contained in:
Owain Davies 2022-12-31 17:23:18 +07:00 committed by GitHub
parent 636e9dd23f
commit 98308dbeb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: