How to annotate function argument that takes instances of classes that have __dict__ attribute and not __slots__, and vice-versa

后端 未结 0 1688
轮回少年
轮回少年 2021-01-21 17:13

Let\'s say I have a function dict_to_string:

>>> def dict_to_string(d: ??) -> str:
...     return \';\'.join(f"{k},{v}" for k,          


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