From 94e3501a0e46811f199f500aec1862b9070a6f8d Mon Sep 17 00:00:00 2001 From: Jitendra Gundaniya Date: Tue, 21 May 2024 20:50:34 +0100 Subject: [PATCH] type ignore add for TRANSCODING_SEPARATOR Signed-off-by: Jitendra Gundaniya --- package/kedro_viz/data_access/repositories/catalog.py | 2 +- package/kedro_viz/integrations/kedro/hooks.py | 5 ++++- package/kedro_viz/models/flowchart.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package/kedro_viz/data_access/repositories/catalog.py b/package/kedro_viz/data_access/repositories/catalog.py index 427a13cf0d..bfbd61a437 100644 --- a/package/kedro_viz/data_access/repositories/catalog.py +++ b/package/kedro_viz/data_access/repositories/catalog.py @@ -12,7 +12,7 @@ from kedro.pipeline._transcoding import TRANSCODING_SEPARATOR, _strip_transcoding except ImportError: # pragma: no cover # older versions - from kedro.pipeline.pipeline import TRANSCODING_SEPARATOR, _strip_transcoding + from kedro.pipeline.pipeline import TRANSCODING_SEPARATOR, _strip_transcoding # type: ignore from packaging.version import parse diff --git a/package/kedro_viz/integrations/kedro/hooks.py b/package/kedro_viz/integrations/kedro/hooks.py index d68c5eea70..32f2ffa594 100644 --- a/package/kedro_viz/integrations/kedro/hooks.py +++ b/package/kedro_viz/integrations/kedro/hooks.py @@ -17,7 +17,10 @@ from kedro.pipeline._transcoding import TRANSCODING_SEPARATOR, _strip_transcoding except ImportError: # pragma: no cover # older versions - from kedro.pipeline.pipeline import TRANSCODING_SEPARATOR, _strip_transcoding + from kedro.pipeline.pipeline import ( # type: ignore + TRANSCODING_SEPARATOR, + _strip_transcoding, + ) logger = logging.getLogger(__name__) diff --git a/package/kedro_viz/models/flowchart.py b/package/kedro_viz/models/flowchart.py index dbb842af3e..00c0525c1d 100644 --- a/package/kedro_viz/models/flowchart.py +++ b/package/kedro_viz/models/flowchart.py @@ -17,7 +17,7 @@ from kedro.pipeline._transcoding import TRANSCODING_SEPARATOR, _strip_transcoding except ImportError: # pragma: no cover # older versions - from kedro.pipeline.pipeline import TRANSCODING_SEPARATOR, _strip_transcoding + from kedro.pipeline.pipeline import TRANSCODING_SEPARATOR, _strip_transcoding # type: ignore from pydantic import ( BaseModel,