In python type-hinting, how can I make an argument accept any subclass of a base class?

后端 未结 3 1210
醉话见心
醉话见心 2021-01-18 10:36

I have a function that looks a bit like this. I want the function to accept any subclass of io.IOBase - in other words, any file-like object.

def import_csv_         


        
3条回答
提交回复
热议问题