chore: ruff E721

Looks like in the latest version of ruff, E721 was added or changed and now catches something it didn't before.
This commit is contained in:
psychedelicious 2024-06-28 08:03:45 +10:00
parent 9f93e9d120
commit 132289de55

View File

@ -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