core[patch]: Fix f-string formatting in error message for configurable_fields (#16411)

- **Description:** Simple fix to f-string formatting. Allows more
informative ValueError output.
  - **Issue:** None needed.
  - **Dependencies:** None.
  - **Twitter handle:** @FlightP1an
pull/16516/head
Chase VanSteenburg 8 months ago committed by GitHub
parent b26a22f307
commit 1011b681dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1646,7 +1646,7 @@ class RunnableSerializable(Serializable, Runnable[Input, Output]):
if key not in self.__fields__:
raise ValueError(
f"Configuration key {key} not found in {self}: "
"available keys are {self.__fields__.keys()}"
f"available keys are {self.__fields__.keys()}"
)
return RunnableConfigurableFields(default=self, fields=kwargs)

Loading…
Cancel
Save