Skip to content

Commit 0609517

Browse files
committed
Add a workaround for a mypy issue
See python/mypy#14774 for more details. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 3d6d369 commit 0609517

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/frequenz/sdk/timeseries/_serializable_ringbuffer.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def __init__(
4444
"2022-01-01 12:00:00" to "2022-01-02 12:00:00" (date chosen
4545
arbitrarily here).
4646
"""
47-
super().__init__(buffer, sampling_period, time_index_alignment)
47+
# Overcome a bug in mypy: https://github.com/python/mypy/issues/14774
48+
super().__init__(buffer, sampling_period, time_index_alignment) # type: ignore[arg-type]
4849
self._path = path
4950
self._file_format_version = FILE_FORMAT_VERSION
5051

0 commit comments

Comments
 (0)