aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/DataStructures.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/argaze/DataStructures.py b/src/argaze/DataStructures.py
index 08bcac9..0c1dd5e 100644
--- a/src/argaze/DataStructures.py
+++ b/src/argaze/DataStructures.py
@@ -52,12 +52,14 @@ class TimeStampedBuffer(collections.OrderedDict):
return json.dumps(self, default=vars)
- def append(self, timestamped_buffer: TimeStampedBufferType):
+ def append(self, timestamped_buffer: TimeStampedBufferType) -> TimeStampedBufferType:
"""Append a timestamped buffer."""
for ts, value in timestamped_buffer.items():
self[ts] = value
+ return self
+
def get_first(self) -> Tuple[TimeStampType, DataType]:
"""Easing access to first item."""