mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 15:12:26 +02:00
Type as self
This commit is contained in:
@@ -227,9 +227,7 @@ class Pregel(
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
|
||||
def with_config(
|
||||
self, config: RunnableConfig | None = None, **kwargs: Any
|
||||
) -> Runnable[Dict[All, Any] | Any, Dict[All, Any] | Any]:
|
||||
def with_config(self, config: RunnableConfig | None = None, **kwargs: Any) -> Self:
|
||||
return self.copy(
|
||||
update={"config": cast(RunnableConfig, {**(config or {}), **kwargs})}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user