Skip to content

Commit 3f2b99e

Browse files
committed
Refactor ColumnMapping imports in evidently modules
1 parent 187d7af commit 3f2b99e

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/zenml/integrations/evidently/column_mapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
from typing import List, Optional, Sequence, Union
1717

18-
from evidently.legacy.pipeline.column_mapping import (
19-
ColumnMapping, # type: ignore[import-untyped]
18+
from evidently.legacy.pipeline.column_mapping import ( # type: ignore[import-untyped]
19+
ColumnMapping,
2020
)
2121
from pydantic import BaseModel, ConfigDict, Field
2222

src/zenml/integrations/evidently/data_validators/evidently_data_validator.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
)
2626

2727
import pandas as pd
28-
from evidently.legacy.pipeline.column_mapping import (
29-
ColumnMapping, # type: ignore
28+
from evidently.legacy.pipeline.column_mapping import ( # type: ignore[import-untyped]
29+
ColumnMapping,
30+
)
31+
from evidently.legacy.report import Report # type: ignore[import-untyped]
32+
from evidently.legacy.test_suite import ( # type: ignore[import-untyped]
33+
TestSuite,
3034
)
31-
from evidently.legacy.report import Report # type: ignore
32-
from evidently.legacy.test_suite import TestSuite # type: ignore
3335

3436
from zenml.data_validators import BaseDataValidator, BaseDataValidatorFlavor
3537
from zenml.integrations.evidently.flavors.evidently_data_validator_flavor import (

src/zenml/integrations/evidently/steps/evidently_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ def evidently_report_step(
108108
report_options=report_options or [],
109109
download_nltk_data=download_nltk_data,
110110
)
111-
return report.json(), HTMLString(report.show(mode="inline").data)
111+
return report.json(), HTMLString(report.get_html())

src/zenml/integrations/evidently/steps/evidently_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ def evidently_test_step(
104104
)
105105
return (
106106
test_suite.json(),
107-
HTMLString(test_suite.show(mode="inline").data),
107+
HTMLString(test_suite.get_html()),
108108
)

0 commit comments

Comments
 (0)