How to support annotations for a custom type in a C extension?

Marco Sulla Marco.Sulla.Python at gmail.com
Fri Sep 17 16:03:42 EDT 2021


I created a custom dict in a C extension. Name it `promethea`. How can
I implement `promethea[str, str]`? Now I get:

TypeError: 'type' object is not subscriptable


More information about the Python-list mailing list