[issue38574] Dataclasses documentation should show the necessary imports

2019-10-24 Thread Eric V. Smith
Eric V. Smith added the comment: This is a duplicate of issue 36661. -- nosy: +eric.smith resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Missing dataclass decorator import in dataclasses module docs ___ Python t

[issue38574] Dataclasses documentation should show the necessary imports

2019-10-24 Thread Leon Matthews
New submission from Leon Matthews : 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 im