[New-bugs-announce] [issue35745] Add import statement in dataclass code snippet

Windson Yang report at bugs.python.org
Tue Jan 15 10:33:11 EST 2019

New submission from Windson Yang <wiwindson at outlook.com>:

Most of the example in https://docs.python.org/3/library/dataclasses.html miss code like

from dataclasses import dataclass, field
from typing import List

I think we should add this statement in the code snippet.

assignee: docs at python
components: Documentation
messages: 333707
nosy: Windson Yang, docs at python
priority: normal
severity: normal
status: open
title: Add import statement in dataclass code snippet
type: enhancement
versions: Python 3.7, Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list