mirror of https://github.com/hwchase17/langchain
Patch forward ref bug (#12508)
Currently this gives a bug: ``` from langchain.schema.runnable import RunnableLambda bound = RunnableLambda(lambda x: x).with_config({"callbacks": []}) # ConfigError: field "callbacks" not yet prepared so type is still a ForwardRef, you might need to call RunnableConfig.update_forward_refs(). ``` Rather than deal with cyclic imports and extra load time, etc., I think it makes sense to just have a separate Callbacks definition here that is a relaxed typehint.bagatur/lakefs-loader
parent
36204c2baf
commit
a830b809f3
Loading…
Reference in New Issue