Skip to content

Commit

Permalink
fixed deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Filimoa committed Oct 29, 2024
1 parent 2f5da97 commit 0e2ee3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion polars_hash/polars_hash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
import warnings
from pathlib import Path
from typing import Iterable, Protocol, cast
from packaging.version import Version

import polars as pl
from polars.plugins import register_plugin_function
from polars.type_aliases import IntoExpr, PolarsDataType

if Version(pl.__version__) >= Version("1.0"):
from polars._typing import IntoExpr, PolarsDataType

else:
from polars.type_aliases import IntoExpr, PolarsDataType

from polars_hash._internal import __version__ as __version__

Expand Down
3 changes: 2 additions & 1 deletion polars_hash/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ polars
pytest
mypy
ruff
black
black
packaging

0 comments on commit 0e2ee3f

Please sign in to comment.