Skip to content

Commit

Permalink
Update mypy ignore messages (#4228)
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
  • Loading branch information
ankatiyar authored Oct 15, 2024
1 parent 91468e6 commit efcee97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kedro/framework/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion kedro/framework/context/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit efcee97

Please sign in to comment.