Skip to content

Commit

Permalink
refactor: Improve type annotations for in test_unique.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswas-N committed Dec 23, 2024
1 parent 362471a commit df1f50b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion py-polars/tests/unit/operations/unique/test_unique.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
from __future__ import annotations

from datetime import date
from typing import TYPE_CHECKING, Any

import pytest

import polars as pl
from polars.exceptions import ColumnNotFoundError
from polars.testing import assert_frame_equal, assert_series_equal

if TYPE_CHECKING:
from polars._typing import PolarsDataType


def test_unique_predicate_pd() -> None:
lf = pl.LazyFrame(
Expand Down Expand Up @@ -175,7 +179,9 @@ def test_unique_with_null() -> None:
],
)
def test_unique_with_bad_subset(
input_json_data: dict, input_schema: dict, subset: str | list[str]
input_json_data: dict[str, list[Any]],
input_schema: dict[str, PolarsDataType],
subset: str | list[str],
) -> None:
df = pl.DataFrame(input_json_data, schema=input_schema)

Expand Down

0 comments on commit df1f50b

Please sign in to comment.