File size: 168 Bytes
82ea528 |
1 2 3 4 5 6 7 8 |
def isinstance_str(x: object, cls_name: str):
for _cls in x.__class__.__mro__:
if _cls.__name__ == cls_name:
return True
return False
|
82ea528 |
1 2 3 4 5 6 7 8 |
def isinstance_str(x: object, cls_name: str):
for _cls in x.__class__.__mro__:
if _cls.__name__ == cls_name:
return True
return False
|