Skip to content

Commit 5b2c98e

Browse files
authored
Merge pull request #138 from python-ellar/mypy_fix_3oct
fix: Mypy Errors
2 parents 0718a66 + 0435639 commit 5b2c98e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ellar_cli/file_scaffolding.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def on_scaffold_completed(self) -> None: # pragma: no cover
8282

8383
def on_scaffold_started(self) -> None:
8484
for context in self._schema.context:
85-
assert (
86-
self._ctx.get(context) is not None
87-
), f"{context} template context is missing."
85+
assert self._ctx.get(context) is not None, (
86+
f"{context} template context is missing."
87+
)
8888

8989
def create_directory(
9090
self,

ellar_cli/service/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def import_project_meta(
9696
project
9797
) or ellar_py_projects.has_project(ellar_py_projects.default_project):
9898
project_to_load = (
99-
project # type: ignore
99+
project
100100
if ellar_py_projects.has_project(project)
101101
else ellar_py_projects.default_project
102102
)
@@ -164,7 +164,7 @@ def write_py_project(path: str, content: Table) -> None:
164164
fw.writelines(tomlkit_dumps(content))
165165

166166
def _import_from_string(self) -> t.Union[App, t.Callable[..., App]]:
167-
return import_from_string(self._meta.application) # type:ignore[no-any-return]
167+
return import_from_string(self._meta.application)
168168

169169
def _import_and_validate_application(
170170
self,

0 commit comments

Comments
 (0)