Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Oct 15, 2023
1 parent 6b0444a commit ce3e7ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/tests/unit/operations/test_aggregations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import math
from datetime import date, datetime, timedelta
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING, Any, cast

import numpy as np
import pytest
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_median() -> None:

def test_single_element_std() -> None:
s = pl.Series([1])
assert math.isnan(s.std(ddof=1))
assert math.isnan(cast(float, s.std(ddof=1)))
assert s.std(ddof=0) == 0.0


Expand Down

0 comments on commit ce3e7ad

Please sign in to comment.