chore(invocation-stats): improve types in _prune_stale_stats

This commit is contained in:
psychedelicious 2024-02-03 18:37:24 +11:00 committed by Kent Keirsey
parent 3ebb806410
commit 0976ddba23

View File

@ -79,7 +79,7 @@ class InvocationStatsService(InvocationStatsServiceBase):
This shouldn't be necessary, but we don't have totally robust upstream handling of graph completions/errors, so
for now we call this function periodically to prevent them from accumulating.
"""
to_prune = []
to_prune: list[str] = []
for graph_execution_state_id in self._stats:
try:
graph_execution_state = self._invoker.services.graph_execution_manager.get(graph_execution_state_id)