From 382e821e06c782cd5d696d0b6742ddb8fa30953c Mon Sep 17 00:00:00 2001 From: aria1th <35677394+aria1th@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:36:12 +0900 Subject: [PATCH] TEMP: skip warning --- autonode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autonode.py b/autonode.py index 3ed9419..4a973d3 100644 --- a/autonode.py +++ b/autonode.py @@ -80,18 +80,18 @@ def validate(container): function_kwargs = list(function_kwargs) + ["self"] # if args/kwargs are in function kwargs, warn and skip if "args" in function_kwargs: - print(f"Warning: args in function arguments in {cls.__name__}, skipping argument validation") + #print(f"Warning: args in function arguments in {cls.__name__}, skipping argument validation") continue if "kwargs" in function_kwargs: - print(f"Warning: kwargs in function arguments in {cls.__name__}, skipping argument validation") + #print(f"Warning: kwargs in function arguments in {cls.__name__}, skipping argument validation") continue # input kwargs are subset of function kwargs if not set(input_keys).issubset(function_kwargs): raise Exception(f"INPUT_TYPES and function arguments must match in {cls.__name__}, input_types: {input_keys}, function arguments: {function_kwargs}") # if not exact match, print warning if len(set(input_keys)) != len(set(function_kwargs)): - print(f"Warning: INPUT_TYPES and function arguments don't match in {cls.__name__}, input_types: {input_keys}, function arguments: {function_kwargs}") - + #print(f"Warning: INPUT_TYPES and function arguments don't match in {cls.__name__}, input_types: {input_keys}, function arguments: {function_kwargs}") + pass # AllTrue class hijacks the isinstance, issubclass, bool, str, jsonserializable, eq, ne methods to always return True class AllTrue(str): def __init__(self, representation=None) -> None: