This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Leon Matthews
Recipients Leon Matthews, docs@python
Date 2019-10-24.07:34:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571902474.91.0.395635401957.issue38574@roundup.psfhosted.org>
In-reply-to
Content
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:
        ...
History
Date User Action Args
2019-10-24 07:34:34Leon Matthewssetrecipients: + Leon Matthews, docs@python
2019-10-24 07:34:34Leon Matthewssetmessageid: <1571902474.91.0.395635401957.issue38574@roundup.psfhosted.org>
2019-10-24 07:34:34Leon Matthewslinkissue38574 messages
2019-10-24 07:34:34Leon Matthewscreate