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

import dataclass not dataclasses from dataclasses
(cherry picked from commit 98308dbeb1)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-12-31 04:28:59 -08:00 committed by GitHub
parent f9ddbc0de5
commit f80ba44f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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