Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345609
D2990.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
782 B
Subscribers
None
D2990.diff
View Options
diff --git a/swh/journal/writer/kafka.py b/swh/journal/writer/kafka.py
--- a/swh/journal/writer/kafka.py
+++ b/swh/journal/writer/kafka.py
@@ -4,7 +4,7 @@
# See top-level LICENSE file for more information
import logging
-from typing import Dict, Iterable, List, Type, Union, overload
+from typing import Dict, Iterable, Type, Union, overload
from confluent_kafka import Producer, KafkaException
@@ -155,7 +155,7 @@
write_update = write_addition
- def write_additions(self, object_type: str, objects: List[ModelObject]) -> None:
+ def write_additions(self, object_type: str, objects: Iterable[ModelObject]) -> None:
"""Write a set of objects to the journal"""
for object_ in objects:
self._write_addition(object_type, object_)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:26 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3228406
Attached To
D2990: Accept Sequence[ModelObject] instead of List[ModelObject]
Event Timeline
Log In to Comment