Skip to content

Commit

Permalink
Fix copy
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Sep 6, 2024
1 parent f13dd00 commit fb9f67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langgraph/langgraph/pregel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def __init__(

def copy(self, update: dict[str, Any]) -> Self:
attrs = {**self.__dict__, **update}
return Pregel(**attrs)
return self.__class__(**attrs)

def with_config(self, config: RunnableConfig | None = None, **kwargs: Any) -> Self:
return self.copy({"config": merge_configs(self.config, config, kwargs)})
Expand Down

0 comments on commit fb9f67c

Please sign in to comment.