Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7343084
D2992.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
649 B
Subscribers
None
D2992.id.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, Type, Union, overload
+from typing import Dict, Iterable, Optional, Type, Union, overload
from confluent_kafka import Producer, KafkaException
@@ -51,7 +51,7 @@
brokers: Iterable[str],
prefix: str,
client_id: str,
- producer_config: Dict = Union[None, Dict],
+ producer_config: Optional[Dict] = None,
):
self._prefix = prefix
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 17 2025, 7:16 PM (7 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222450
Attached To
D2992: Use Optional[x] instead of Union[x, None]
Event Timeline
Log In to Comment