From 59c471bc33c320c6f2d3dead85e521c9cc7c3a4d Mon Sep 17 00:00:00 2001 From: Derek Wan Date: Wed, 9 Oct 2024 21:07:42 +0900 Subject: [PATCH] Fix minor type errors (#779) --- src/tests/test_polars.py | 4 ++-- src/utilities/__init__.py | 2 +- src/utilities/iterables.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/test_polars.py b/src/tests/test_polars.py index 2eb772bf7..9dc1b345e 100644 --- a/src/tests/test_polars.py +++ b/src/tests/test_polars.py @@ -1049,7 +1049,7 @@ def test_error_min_periods( _RollingParametersMinPeriodsError, match="Exponential rolling requires 'min_periods' to be set; got None", ): - _ = rolling_parameters( # pyright: ignore[reportCallIssue] + _ = rolling_parameters( e_com=e_com, e_span=e_span, e_half_life=e_half_life, e_alpha=e_alpha ) @@ -1060,7 +1060,7 @@ def test_error_argument(self) -> None: r"Exactly one of simple window, exponential center of mass (γ), exponential span (θ), exponential half-life (λ) or exponential smoothing factor (α) must be given; got s_window=None, γ=None, θ=None, λ=None and α=None" # noqa: RUF001 ), ): - _ = rolling_parameters() # pyright: ignore[reportCallIssue] + _ = rolling_parameters() class TestSetFirstRowAsColumns: diff --git a/src/utilities/__init__.py b/src/utilities/__init__.py index 0be04cbf6..54fbe9b4e 100644 --- a/src/utilities/__init__.py +++ b/src/utilities/__init__.py @@ -1,3 +1,3 @@ from __future__ import annotations -__version__ = "0.58.14" +__version__ = "0.58.15" diff --git a/src/utilities/iterables.py b/src/utilities/iterables.py index fc002a01a..57e17cafd 100644 --- a/src/utilities/iterables.py +++ b/src/utilities/iterables.py @@ -503,6 +503,7 @@ def __new__(cls, *item_or_items: MaybeIterable[_TSupportsHashAndSort]) -> Self: return super().__new__(cls, items) def __init__(self, *item_or_items: MaybeIterable[_TSupportsHashAndSort]) -> None: + super().__init__() _ = item_or_items @override