Skip to content

Commit

Permalink
fix latest precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasaarholt committed Nov 14, 2024
1 parent 135bda1 commit 12208a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/patito/_pydantic/dtypes/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections.abc import Mapping
from functools import cache, reduce
from operator import and_, or_
from operator import or_
from typing import TYPE_CHECKING, Any

import polars as pl
Expand Down
4 changes: 1 addition & 3 deletions tests/test_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def test_valids_basic_annotations() -> None:
with pytest.raises(TypeError, match="Mixed type enums not supported"):
DtypeResolver(Literal[1, 2, "3"]).valid_polars_dtypes() # pyright: ignore

assert DtypeResolver(
Literal["a", "b", "c"]
).valid_polars_dtypes() == { # pyright: ignore
assert DtypeResolver(Literal["a", "b", "c"]).valid_polars_dtypes() == { # pyright: ignore
pl.Enum(["a", "b", "c"]),
pl.String,
}
Expand Down

0 comments on commit 12208a1

Please sign in to comment.