diff --git a/kedro/framework/cli/utils.py b/kedro/framework/cli/utils.py index 1b50408cc5..ca2acfab31 100644 --- a/kedro/framework/cli/utils.py +++ b/kedro/framework/cli/utils.py @@ -422,7 +422,7 @@ def find_run_command(package_name: str) -> Callable: # use run command from `kedro.framework.cli.project` from kedro.framework.cli.project import run - return run # type: ignore[no-any-return] + return run # type: ignore[return-value] # fail badly if cli.py exists, but has no `cli` in it if not hasattr(project_cli, "cli"): raise KedroCliError(f"Cannot load commands from {package_name}.cli") diff --git a/kedro/framework/context/context.py b/kedro/framework/context/context.py index 5c14cbae38..0b44056374 100644 --- a/kedro/framework/context/context.py +++ b/kedro/framework/context/context.py @@ -207,7 +207,7 @@ def params(self) -> dict[str, Any]: # Merge nested structures params = OmegaConf.merge(params, self._extra_params) - return OmegaConf.to_container(params) if OmegaConf.is_config(params) else params # type: ignore[no-any-return] + return OmegaConf.to_container(params) if OmegaConf.is_config(params) else params # type: ignore[return-value] def _get_catalog( self,