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

后端 未结 0 1207
陌清茗
陌清茗 2020-12-21 01:55

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

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