From 95f010b9b8b437ceba4530371551a42d0082588c Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 28 Jun 2024 08:03:45 +1000 Subject: [PATCH] chore: ruff E721 Looks like in the latest version of ruff, E721 was added or changed and now catches something it didn't before. --- invokeai/app/services/shared/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/services/shared/graph.py b/invokeai/app/services/shared/graph.py index d745e73823..60fd909881 100644 --- a/invokeai/app/services/shared/graph.py +++ b/invokeai/app/services/shared/graph.py @@ -652,7 +652,7 @@ class Graph(BaseModel): output_fields = [get_input_field(self.get_node(e.node_id), e.field) for e in outputs] # Input type must be a list - if get_origin(input_field) != list: + if get_origin(input_field) is not list: return False # Validate that all outputs match the input type