From a872878ac82b3b7f0f79f3b02d102dd4179aafbe Mon Sep 17 00:00:00 2001 From: Raoul Schram Date: Wed, 27 Mar 2024 15:38:15 +0100 Subject: [PATCH] I think we can ignore MyPy --- metasyncontrib/disclosure/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metasyncontrib/disclosure/utils.py b/metasyncontrib/disclosure/utils.py index 2d3113e..6d161f0 100644 --- a/metasyncontrib/disclosure/utils.py +++ b/metasyncontrib/disclosure/utils.py @@ -63,7 +63,7 @@ def _create_subsample( # pylint: disable=too-many-locals # Workaround for years < 1970 that should work for Windows and Linux/OS X sub_values = [] for block in block_values: - mean_time = pl.Series(block).dt.cast_time_unit("us").mean() + mean_time: float = pl.Series(block).dt.cast_time_unit("us").mean() # type: ignore assert mean_time is not None sec_since_1970 = mean_time / 1e6 sub_values.append(