New submission from Windson Yang <wiwind...@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@python
components: Documentation
messages: 333707
nosy: Windson Yang, docs@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35745>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to