mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-26 13:59:49 +00:00
core[patch]: Do not hard coded name for RunnableBranch (#26276)
This is no longer necessary
This commit is contained in:
@@ -138,13 +138,6 @@ class RunnableBranch(RunnableSerializable[Input, Output]):
|
||||
super().__init__(
|
||||
branches=_branches,
|
||||
default=default_,
|
||||
# Hard-coding a name here because RunnableBranch is a generic
|
||||
# and with pydantic 2, the class name with pydantic will capture
|
||||
# include the parameterized type, which is not what we want.
|
||||
# e.g., we'd get RunnableBranch[Input, Output] instead of RunnableBranch
|
||||
# for the name. This information is already captured in the
|
||||
# input and output types.
|
||||
name="RunnableBranch",
|
||||
) # type: ignore[call-arg]
|
||||
|
||||
model_config = ConfigDict(
|
||||
|
Reference in New Issue
Block a user