[issue35745] Add import statement in dataclass code snippet

2019-10-29 Thread Eric V. Smith
Eric V. Smith added the comment: Closed in favor of issue 36661 (which I realize was opened later, but has more discussion, so I'm using it going forward). -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue35745] Add import statement in dataclass code snippet

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue36661 -- nosy: +eric.smith, xtreak ___ Python tracker ___ ___

[issue35745] Add import statement in dataclass code snippet

2019-01-15 Thread Windson Yang
Windson Yang added the comment: I'm not sure if we should put from dataclasses import dataclass everywhere or we should put it just in the first example as I did in the PR. -- ___ Python tracker _

[issue35745] Add import statement in dataclass code snippet

2019-01-15 Thread Windson Yang
New submission from Windson Yang : 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: