Python type hint class as either object or list

前端 未结 0 2050
栀梦
栀梦 2021-01-02 00:26

I would like to have a list of objects with the feature that my_list.{attribute name} should return the values of any attribute name. For example <

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