mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 20:46:45 +00:00
community[patch]: Add missing type annotations (#22758)
Add missing type annotations to objects in community. These missing type annotations will raise type errors in pydantic 2.
This commit is contained in:
@@ -26,7 +26,7 @@ GUARDRAILS_TRIGGER = os.environ.get(
|
||||
class BedrockAsyncCallbackHandler(AsyncCallbackHandler):
|
||||
"""Async callback handler that can be used to handle callbacks from langchain."""
|
||||
|
||||
guardrails_intervened = False
|
||||
guardrails_intervened: bool = False
|
||||
|
||||
async def on_llm_error(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user