MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / isinstance_str

Function isinstance_str

tricks/utils/module_utils.py:1–6  ·  view source on GitHub ↗
(x: object, cls_name: str)

Source from the content-addressed store, hash-verified

1def isinstance_str(x: object, cls_name: str):
2 for _cls in x.__class__.__mro__:
3 if _cls.__name__ == cls_name:
4 return True
5
6 return False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected