From 04356396ee4a150b3218613eb8e7236456ce439f Mon Sep 17 00:00:00 2001 From: Ezeudoh Tochukwu Date: Sat, 4 Oct 2025 07:13:02 +0100 Subject: [PATCH] fixed mypy errors --- ellar_cli/file_scaffolding.py | 6 +++--- ellar_cli/service/cli.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ellar_cli/file_scaffolding.py b/ellar_cli/file_scaffolding.py index e494b4e..0201fa1 100644 --- a/ellar_cli/file_scaffolding.py +++ b/ellar_cli/file_scaffolding.py @@ -82,9 +82,9 @@ def on_scaffold_completed(self) -> None: # pragma: no cover def on_scaffold_started(self) -> None: for context in self._schema.context: - assert ( - self._ctx.get(context) is not None - ), f"{context} template context is missing." + assert self._ctx.get(context) is not None, ( + f"{context} template context is missing." + ) def create_directory( self, diff --git a/ellar_cli/service/cli.py b/ellar_cli/service/cli.py index 5203c7a..3bac612 100644 --- a/ellar_cli/service/cli.py +++ b/ellar_cli/service/cli.py @@ -96,7 +96,7 @@ def import_project_meta( project ) or ellar_py_projects.has_project(ellar_py_projects.default_project): project_to_load = ( - project # type: ignore + project if ellar_py_projects.has_project(project) else ellar_py_projects.default_project ) @@ -164,7 +164,7 @@ def write_py_project(path: str, content: Table) -> None: fw.writelines(tomlkit_dumps(content)) def _import_from_string(self) -> t.Union[App, t.Callable[..., App]]: - return import_from_string(self._meta.application) # type:ignore[no-any-return] + return import_from_string(self._meta.application) def _import_and_validate_application( self,