Fix py 3.9

- isclass and issubclass disagree on whether something like list[str] is a class
This commit is contained in:
Nuno Campos
2025-03-11 17:51:13 -07:00
parent 14c2241853
commit e566ed4b3f
+3 -1
View File
@@ -627,7 +627,9 @@ class StateGraph(Graph):
builder=self,
config_type=self.config_schema,
input_model=self.input
if isclass(self.input) and issubclass(self.input, (BaseModel, BaseModelV1))
if len(self.channels) > 1
and isclass(self.input)
and issubclass(self.input, (BaseModel, BaseModelV1))
else None,
nodes={},
channels={