Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

utils: Fix process_list_in_batches type safety.

Anders Kaseorg408ef63404ab
diff --git a/zerver/lib/utils.py b/zerver/lib/utils.py
index f1f0f5cfbb8..36051e20bc8 100644
--- a/zerver/lib/utils.py
+++ b/zerver/lib/utils.py
@@ -97,7 +97,7 @@ def assert_is_not_none(value: Optional[T]) -> T:
def process_list_in_batches(
- lst: List[Any], chunk_size: int, process_batch: Callable[[List[Any]], None]
+ lst: List[T], chunk_size: int, process_batch: Callable[[List[T]], None]
) -> None:
offset = 0