fix: fix linting errors

This commit is contained in:
Krrish Dholakia
2025-09-27 14:25:05 -07:00
parent e644953c0f
commit 4e283aa13b
2 changed files with 5 additions and 5 deletions
@@ -401,8 +401,9 @@ class AmazonInvokeAgentConfig(BaseConfig, BaseAWSLLM):
if not pre_processing:
return
model_output: Optional[InvokeAgentModelInvocationOutput] = pre_processing.get(
"modelInvocationOutput" or InvokeAgentModelInvocationOutput()
model_output: Optional[InvokeAgentModelInvocationOutput] = (
pre_processing.get("modelInvocationOutput")
or InvokeAgentModelInvocationOutput()
)
if not model_output:
return
+2 -3
View File
@@ -1,3 +1,2 @@
llms/bedrock/chat/invoke_agent/transformation.py:404: error: Incompatible types in assignment (expression has type "InvokeAgentModelInvocationOutput | dict[Never, Never] | None", variable has type "InvokeAgentModelInvocationOutput | None") [assignment]
llms/bedrock/chat/invoke_agent/transformation.py:410: error: Incompatible types in assignment (expression has type "InvokeAgentMetadata | dict[Never, Never] | None", variable has type "InvokeAgentMetadata | None") [assignment]
Found 2 errors in 1 file (checked 1114 source files)
llms/bedrock/chat/invoke_agent/transformation.py:404: error: Incompatible types in assignment (expression has type "object", variable has type "InvokeAgentModelInvocationOutput | None") [assignment]
llms/bedrock/chat/invoke_agent/transformation.py:405: error: Argument 1 to "get" of "Mapping" has incompatible type "str | InvokeAgentModelInvocationOutput"; expected "str" [typeddict-item]