mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-31 20:29:46 +02:00
Fix py 3.9
- isclass and issubclass disagree on whether something like list[str] is a class
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user