Skip to content

Commit

Permalink
test[python]: Fix type indexing py3.7 test error
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj committed Aug 14, 2022
1 parent 83cffcc commit 2a7d835
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions py-polars/tests/io/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import zlib
from datetime import date, datetime, time
from pathlib import Path
from typing import cast

import pytest

Expand Down Expand Up @@ -510,10 +509,8 @@ def test_fallback_chrono_parser() -> None:
2021-10-10,2021-10-10
"""
)
assert cast(
tuple[int, int],
pl.read_csv(data.encode(), parse_dates=True).null_count().row(0),
) == (0, 0)
df = pl.read_csv(data.encode(), parse_dates=True)
assert df.null_count().row(0) == (0, 0) # type: ignore[comparison-overlap]


def test_csv_string_escaping() -> None:
Expand Down

0 comments on commit 2a7d835

Please sign in to comment.