Skip to content

Commit

Permalink
Update polars_engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicBboy authored Sep 21, 2024
1 parent 6e8a657 commit c3a3715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandera/engines/polars_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ class Enum(DataType):

def __init__( # pylint:disable=super-init-not-called
self,
categories: pl.Series | Iterable[str] | None = None,
categories: Union[pl.Series, Iterable[str], None] = None,
) -> None:
object.__setattr__(self, "categories", categories)
object.__setattr__(self, "type", pl.Enum(categories=categories))
Expand Down

0 comments on commit c3a3715

Please sign in to comment.