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:
Eugene Yurtsev
2024-06-10 16:59:28 -04:00
committed by GitHub
parent 3237909221
commit 05d31a2f00
18 changed files with 37 additions and 37 deletions

View File

@@ -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,