modest-mouse's picture qwecja's picture
Duplicate from qwecja/ltx-ugc-bundle
0c222d5
Raw History Blame Contribute Delete
163 Bytes
def isinstance_str(x: object, cls_name: str):
for _cls in x.__class__.__mro__:
if _cls.__name__ == cls_name:
return True
return False