[CHORE]: remove redundant-cast (#24807)

This commit is contained in:
willzhao 2025-09-01 14:05:32 +08:00 committed by GitHub
commit ffba341258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 54 additions and 90 deletions

View file

@ -140,7 +140,7 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
environment_variables=self._workflow.environment_variables,
# Based on the definition of `VariableUnion`,
# `list[Variable]` can be safely used as `list[VariableUnion]` since they are compatible.
conversation_variables=cast(list[VariableUnion], conversation_variables),
conversation_variables=conversation_variables,
)
# init graph