Issue38574
Created on 2019-10-24 07:34 by Leon Matthews, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg355289 - (view) | Author: Leon Matthews (Leon Matthews) | Date: 2019-10-24 07:34 | |
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:
...
|
|||
| msg355292 - (view) | Author: Eric V. Smith (eric.smith) * ![]() |
Date: 2019-10-24 07:47 | |
This is a duplicate of issue 36661. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:22 | admin | set | github: 82755 |
| 2019-10-24 07:47:04 | eric.smith | set | status: open -> closed superseder: Missing dataclass decorator import in dataclasses module docs nosy:
+ eric.smith |
| 2019-10-24 07:34:34 | Leon Matthews | create | |
