diff --git a/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_asset_specs.py b/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_asset_specs.py index 9f9bd5891a4cd..555288ebf7498 100644 --- a/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_asset_specs.py +++ b/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_asset_specs.py @@ -25,7 +25,7 @@ from dagster_powerbi import PowerBIWorkspace from dagster_powerbi.assets import build_semantic_model_refresh_asset_definition from dagster_powerbi.resource import BASE_API_URL, PowerBIToken, load_powerbi_asset_specs -from dagster_powerbi.translator import DagsterPowerBITranslator, PowerBIContentData +from dagster_powerbi.translator import DagsterPowerBITranslator, PowerBITranslatorData from dagster_powerbi_tests.conftest import SAMPLE_SEMANTIC_MODEL @@ -85,8 +85,8 @@ def test_translator_dashboard_spec(workspace_data_api_mocks: None, workspace_id: class MyCustomTranslator(DagsterPowerBITranslator): - def get_asset_spec(self, data: PowerBIContentData) -> AssetSpec: - default_spec = super().get_asset_spec(data) # type: ignore + def get_asset_spec(self, data: PowerBITranslatorData) -> AssetSpec: + default_spec = super().get_asset_spec(data) return default_spec.replace_attributes( key=default_spec.key.with_prefix("prefix"), ).merge_attributes(metadata={"custom": "metadata"}) diff --git a/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_translator.py b/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_translator.py index 4a5264f445556..b958dcd15f4df 100644 --- a/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_translator.py +++ b/python_modules/libraries/dagster-powerbi/dagster_powerbi_tests/test_translator.py @@ -142,8 +142,8 @@ def test_translator_semantic_model_many_tables(second_workspace_data: PowerBIWor class MyCustomTranslator(DagsterPowerBITranslator): - def get_asset_spec(self, data: PowerBIContentData) -> AssetSpec: - default_spec = super().get_asset_spec(data) # type: ignore + def get_asset_spec(self, data: PowerBITranslatorData) -> AssetSpec: + default_spec = super().get_asset_spec(data) return default_spec.replace_attributes( key=default_spec.key.with_prefix("prefix"), ).merge_attributes(metadata={"custom": "metadata"})