Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hamilton/plugins/polars_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
f"Current version: {pl_version}, minimum required version: 1.0.0."
)
else:
from hamilton.plugins.polars_post_1_0_0_extension import register_data_loaders
from hamilton.plugins.polars_post_1_0_0_extensions import register_data_loaders

register_data_loaders()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ class PolarsSpreadsheetWriter(DataSaver):
# importing here because this is where it's used. Can move later.
# but yeah the polars type aliases weren't resolving well in python 3.9
# so stripped/reduced them appropriately.
from polars._typing import ColumnTotalsDefinition, RowTotalsDefinition
from polars.datatypes import DataType, DataTypeClass
from polars.type_aliases import ColumnTotalsDefinition, RowTotalsDefinition

workbook: Union[Workbook, BytesIO, Path, str]
worksheet: Union[str, None] = None
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/test_polars_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import polars as pl # isort: skip
import pytest # isort: skip

from hamilton.plugins.polars_post_1_0_0_extension import ( # isort: skip
from hamilton.plugins.polars_post_1_0_0_extensions import ( # isort: skip
PolarsAvroReader,
PolarsAvroWriter,
PolarsCSVReader,
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/test_polars_lazyframe_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
PolarsScanFeatherReader,
PolarsScanParquetReader,
)
from hamilton.plugins.polars_post_1_0_0_extension import (
from hamilton.plugins.polars_post_1_0_0_extensions import (
PolarsAvroReader,
PolarsAvroWriter,
PolarsCSVWriter,
Expand Down