Skip to content

Commit 2ff1cea

Browse files
committed
fixing some linting issues
1 parent 6afd8e8 commit 2ff1cea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ellar/di/providers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ def __init__(self, cls: t.Type[T], **init_kwargs: t.Any) -> None:
3838
super().__init__(cls)
3939
self._init_kwargs = init_kwargs
4040

41-
def get(self, injector: Injector) -> T: # type:ignore[type-var]
42-
return injector.create_object(self._cls, additional_kwargs=self._init_kwargs)
41+
def get(self, injector: Injector) -> T: # type: ignore[type-var]
42+
return injector.create_object( # type:ignore[no-any-return]
43+
self._cls, additional_kwargs=self._init_kwargs
44+
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test = [
6060
"pytest >= 6.2.4,<8.0.0",
6161
"pytest-cov >= 2.12.0,<5.0.0",
6262
"black ==22.12.0",
63-
"mypy == 1.4.1",
63+
"mypy == 1.5.1",
6464
"ruff ==0.0.275",
6565
"pytest-asyncio",
6666
"databases[sqlite] >= 0.3.2",

0 commit comments

Comments
 (0)