From 62aebcb9d567edd42fa0858a8b6cbe8cb03e7d39 Mon Sep 17 00:00:00 2001 From: Alexander Nenninger Date: Wed, 1 May 2024 21:21:37 +0200 Subject: [PATCH] fix(python): Python3.8 compatible f-strings. --- py-polars/tests/unit/operations/rolling/test_rolling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-polars/tests/unit/operations/rolling/test_rolling.py b/py-polars/tests/unit/operations/rolling/test_rolling.py index 0fe64b793d85..29df58c5d570 100644 --- a/py-polars/tests/unit/operations/rolling/test_rolling.py +++ b/py-polars/tests/unit/operations/rolling/test_rolling.py @@ -6,11 +6,11 @@ import numpy as np import pytest from numpy import nan - -import polars as pl from polars.exceptions import ComputeError, InvalidOperationError from polars.testing import assert_frame_equal, assert_series_equal +import polars as pl + if TYPE_CHECKING: from polars.type_aliases import ClosedInterval, PolarsDataType, TimeUnit @@ -993,6 +993,6 @@ def test_rolling_duration(time_unit: Literal["ns", "us", "ms"]) -> None: assert ( res_duration["value"].to_list() == res_datetime["value"].to_list() - ), f"{res_duration["value"].to_list()}, {res_datetime["value"].to_list()}" + ), f"{res_duration['value'].to_list()}, {res_datetime['value'].to_list()}" assert res_duration["index_column"].dtype == pl.Duration(time_unit=time_unit)