Skip to content

Specifying incorrect type in custom node doens't report error #33

@Maykeye

Description

@Maykeye

Consider

    class ConstFloat:
        @classmethod
        def INPUT_TYPES(s):
            return {"required": { "n":   ("FlOAT", {"default": 1.0, "min": -512.0, "max": 512.0})}}
        RETURN_TYPES = ("FLOAT",)
        FUNCTION = "test"
        CATEGORY = "Example"
        def test(self, n):
            return (n,)

    NODE_CLASS_MAPPINGS = {
        "ConstFloat": ConstFloat
    }

Right now I can add it to the graph normally:

image

There is no indication in the console or browser UI that something is wrong:

Set vram state to: NORMAL VRAM
Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
No module 'xformers'. Proceeding without it.
Starting server

To see the GUI go to: http://127.0.0.1:8188

Metadata

Metadata

Assignees

No one assigned

    Labels

    User SupportA user needs help with something, probably not a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions