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 serhiy.storchaka
Recipients Anthony Sottile, andrei.avk, gaborjbernat, serhiy.storchaka, ssbarnea
Date 2021-08-01.17:36:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627839365.22.0.69404086882.issue41973@roundup.psfhosted.org>
In-reply-to
Content
TypeDict is a callable, it can be used as

    Point2D = TypedDict('Point2D', x=int, y=int, label=str)

It can also be used as a base in class definition, but is is not a class itself. It does not occur in __bases__ of the created class, and it cannot be used in isinstance() and issubclass() checks. It is just yet one weird way to customize class creation.

I agree that documenting it as class is not correct. Perhaps it should be declared as a function (with specifying its signature when used as a function) and referred with the :data: role.
History
Date User Action Args
2021-08-01 17:36:05serhiy.storchakasetrecipients: + serhiy.storchaka, ssbarnea, Anthony Sottile, gaborjbernat, andrei.avk
2021-08-01 17:36:05serhiy.storchakasetmessageid: <1627839365.22.0.69404086882.issue41973@roundup.psfhosted.org>
2021-08-01 17:36:05serhiy.storchakalinkissue41973 messages
2021-08-01 17:36:05serhiy.storchakacreate