Message355289
| Author | Leon Matthews |
|---|---|
| Recipients | Leon Matthews, docs@python |
| Date | 2019-10-24.07:34:34 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1571902474.91.0.395635401957.issue38574@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
In the code sample documentation for other modules we show the necessary imports, we should do the same for dataclasses.
For example, the very first example uses the `dataclass` decorator without importing it first. It should read::
from dataclasses import dataclass
@dataclass
class InventoryItem:
... |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-10-24 07:34:34 | Leon Matthews | set | recipients: + Leon Matthews, docs@python |
| 2019-10-24 07:34:34 | Leon Matthews | set | messageid: <1571902474.91.0.395635401957.issue38574@roundup.psfhosted.org> |
| 2019-10-24 07:34:34 | Leon Matthews | link | issue38574 messages |
| 2019-10-24 07:34:34 | Leon Matthews | create | |