mirror of https://github.com/hwchase17/langchain
community[patch]: Fix pydantic ForwardRef error in BedrockBase (#17416)
- **Description:** Fixes a type annotation issue in the definition of BedrockBase. This issue was that the annotation for the `config` attribute includes a ForwardRef to `botocore.client.Config` which is only imported when `TYPE_CHECKING`. This can cause pydantic to raise an error like `pydantic.errors.ConfigError: field "config" not yet prepared so type is still a ForwardRef, ...`. - **Issue:** N/A - **Dependencies:** N/A - **Twitter handle:** `@__nat_n__`pull/17291/head
parent
2c076bebc9
commit
8a3b74fe1f
Loading…
Reference in New Issue