From 0977a5e4aa1452957f862436021d9b50c09cfb4b Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 17 Feb 2024 20:02:37 +1100 Subject: [PATCH] tidy(nodes): remove no-op model_config Because we now customize the JSON Schema creation for GraphExecutionState, the model_config did nothing. --- invokeai/app/services/shared/graph.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/invokeai/app/services/shared/graph.py b/invokeai/app/services/shared/graph.py index 5380c2e795..e3941d9ca3 100644 --- a/invokeai/app/services/shared/graph.py +++ b/invokeai/app/services/shared/graph.py @@ -7,7 +7,6 @@ from typing import Annotated, Any, Optional, TypeVar, Union, get_args, get_origi import networkx as nx from pydantic import ( BaseModel, - ConfigDict, GetJsonSchemaHandler, field_validator, ) @@ -804,22 +803,6 @@ class GraphExecutionState(BaseModel): json_schema = handler.resolve_ref_schema(json_schema) return json_schema - model_config = ConfigDict( - json_schema_extra={ - "required": [ - "id", - "graph", - "execution_graph", - "executed", - "executed_history", - "results", - "errors", - "prepared_source_mapping", - "source_prepared_mapping", - ] - } - ) - def next(self) -> Optional[BaseInvocation]: """Gets the next node ready to execute."""