Generic[T] base class - how to get type of T from within instance?

后端 未结 0 1004
天涯浪人
天涯浪人 2020-12-21 02:01

Assume you have a Python class that inherits from Generic[T]. Is there any way to get a hold of the actual type passed in from within the class/instance?

For example

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