INNER CODE UNIT · Python

get_dynamic_mappings

gokayfem/ComfyUI-fal-API · nodes/dynamic/__init__.py:6

def get_dynamic_mappings() -> tuple[dict[str, type], dict[str, str]]:
    """Return (NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS) for dynamic nodes.

    Never raises: any failure (missing registry, missing utils facade, bad
    schema) yields empty mappings so static node loading is never affected.
    """
    try:
        from .registry_loader import load_dynamic_mappings

        return load_dynamic_mappings()
    except Exception as err:
        import logging

        logging.getLogger(__name__).error(
            "Failed to load dynamic fal nodes: %s", err
        )
        return {}, {}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…