get_type_hints raise NamError with local class

后端 未结 0 870
一向
一向 2021-02-07 09:05

I am using the python function typing.get_type_hints(). Unfortunately this function raise an error when I pass a local class that contains a reference to itself.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题