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 larry
Recipients larry
Date 2021-04-21.06:53:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618988017.88.0.120470341597.issue43901@roundup.psfhosted.org>
In-reply-to
Content
Huh.  The sample code in my thread got goofed up somewhere along the way--maybe it's my fault, maybe it was done to me by some automated process.  Anyway, the example demonstrating classes inheriting annotations was meant to be formatted like this:

    class A:
        ax:int=3
    class B(A):
        pass
    print(getattr(B, '__annotations__', {}))

Maybe some over-smart doodad decided that no paragraph would ever start with spaces, so they helpfully removed them?  Hmm.
History
Date User Action Args
2021-04-21 06:53:37larrysetrecipients: + larry
2021-04-21 06:53:37larrysetmessageid: <1618988017.88.0.120470341597.issue43901@roundup.psfhosted.org>
2021-04-21 06:53:37larrylinkissue43901 messages
2021-04-21 06:53:37larrycreate