Migrate linter from pylint to ruff (#1665)

This commit is contained in:
Simon Mo
2023-11-20 11:58:01 -08:00
committed by GitHub
parent 112627e8b2
commit 5ffc0d13a2
45 changed files with 122 additions and 607 deletions
+1 -4
View File
@@ -350,10 +350,7 @@ class Worker:
self.cache_engine.copy(blocks_to_copy)
issued_cache_op = True
if issued_cache_op:
cache_events = self.cache_events
else:
cache_events = None
cache_events = self.cache_events if issued_cache_op else None
# If there is no input, we don't need to execute the model.
if not seq_group_metadata_list: