mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
fix: fix linting errors
This commit is contained in:
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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue