File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def __eq__(self, other):
9292 ) # noqa: E127
9393
9494 def __str__ (self ):
95- return f"Event(id={ self .id } , key={ str (self .key )} , body={ self .body } )"
95+ return f"Event(id={ self .id !r } , key={ str (self .key )!r } , body={ self .body !r } )"
9696
9797
9898class V3ioError (Exception ):
@@ -125,7 +125,7 @@ def __init__(self, body):
125125 self .body = body
126126
127127 def __repr__ (self ):
128- return f"StreamChunk({ self .body } )"
128+ return f"StreamChunk({ self .body !r } )"
129129
130130
131131class StreamCompletion :
@@ -139,9 +139,7 @@ class StreamCompletion:
139139 :param original_event: Reference to the original event that was streamed.
140140 """
141141
142- __slots__ = ("streaming_step" , "original_event" )
143-
144- def __init__ (self , streaming_step : str , original_event : "Event" ):
142+ def __init__ (self , streaming_step : str , original_event : Event ):
145143 self .streaming_step = streaming_step
146144 self .original_event = original_event
147145
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def is_ready_to_commit(self):
262262 return self .event_weakref () is None
263263
264264 def __repr__ (self ):
265- return f"_EventOffset({ self .offset } )"
265+ return f"_EventOffset({ self .offset !r } )"
266266
267267
268268class SyncEmitSource (Flow ):
You can’t perform that action at this time.
0 commit comments