From 1a88348263b5548b70e240306fead5be511614c8 Mon Sep 17 00:00:00 2001 From: ravi_kumar_pilla Date: Wed, 8 Jan 2025 15:02:56 -0600 Subject: [PATCH] fix lint Signed-off-by: ravi_kumar_pilla --- kedro/__init__.py | 3 ++- pyproject.toml | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kedro/__init__.py b/kedro/__init__.py index a2bec8418f..e74c81be86 100644 --- a/kedro/__init__.py +++ b/kedro/__init__.py @@ -5,6 +5,7 @@ import sys import warnings +from typing import Any __version__ = "0.19.10" @@ -31,7 +32,7 @@ class KedroPythonVersionWarning(UserWarning): ) -def load_ipython_extension(ipython) -> None: +def load_ipython_extension(ipython: Any) -> None: import kedro.ipython kedro.ipython.load_ipython_extension(ipython) diff --git a/pyproject.toml b/pyproject.toml index 0881b6627b..c72d580763 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -178,7 +178,8 @@ layers = [ ] ignore_imports = [ "kedro.runner.task -> kedro.framework.project", - "kedro.framework.hooks.specs -> kedro.framework.context" + "kedro.framework.hooks.specs -> kedro.framework.context", + "kedro -> kedro.ipython" ] [[tool.importlinter.contracts]] @@ -188,6 +189,9 @@ modules = [ "kedro.pipeline", "kedro.io" ] +ignore_imports = [ + "kedro -> kedro.ipython" +] [[tool.importlinter.contracts]] name = "Config cannot import Runner et al"