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

Function _is_v3_node

nodes_registry.py:40–44  ·  view source on GitHub ↗

Check if the node class is a v3 node (has define_schema method).

(node_class: Type)

Source from the content-addressed store, hash-verified

38
39
40def _is_v3_node(node_class: Type) -> bool:
41 """Check if the node class is a v3 node (has define_schema method)."""
42 return hasattr(node_class, "define_schema") and callable(
43 getattr(node_class, "define_schema")
44 )
45
46
47def _wrap_define_schema(node_class: Type, display_name: str) -> None:

Callers 1

decoratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected