Skip to content

Commit 90735bc

Browse files
authored
Merge pull request #122 from python-ellar/library_bump_up
Libraries Bump up
2 parents bfdac45 + 2ff1cea commit 90735bc

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install-full: ## Install dependencies
1818
make install
1919
pre-commit install -f
2020

21-
lint: ## Run code linters
21+
lint:fmt ## Run code linters
2222
black --check ellar tests examples
2323
ruff check ellar tests examples
2424
mypy ellar

ellar/common/decorators/controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def reflect_all_controller_type_routes(cls: t.Type[ControllerBase]) -> None:
7070
)
7171

7272

73+
@t.no_type_check
7374
def Controller(
7475
prefix: t.Optional[str] = None,
7576
*,

ellar/core/middleware/di.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def __init__(
2626
_handler = self.error_handler
2727

2828
super(RequestServiceProviderMiddleware, self).__init__(
29-
debug=debug, handler=_handler, app=app
29+
debug=debug,
30+
handler=_handler, # type:ignore[arg-type]
31+
app=app,
3032
)
3133

3234
self.injector = injector

ellar/di/injector/ellar_injector.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ def __init__(
3737
parent: t.Optional["Injector"] = None,
3838
) -> None:
3939
self._stack = ()
40-
self.parent = parent # type:ignore[assignment]
40+
self.parent = parent
4141
# Binder
4242
self.container = Container(
4343
self,
4444
auto_bind=auto_bind,
45-
parent=parent.binder
46-
if parent is not None
47-
else None, # type:ignore[arg-type]
45+
parent=parent.binder if parent is not None else None,
4846
)
4947

5048
# Bind some useful types

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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ classifiers = [
4040
]
4141

4242
dependencies = [
43-
"injector == 0.20.1",
44-
"starlette == 0.28.0",
43+
"injector == 0.21.0",
44+
"starlette == 0.31.1",
4545
"pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0",
4646
"jinja2",
4747
# cli
@@ -57,10 +57,10 @@ Homepage = "https://eadwincode.github.io/ellar/"
5757

5858
[project.optional-dependencies]
5959
test = [
60-
"pytest >=6.2.4,<8.0.0",
61-
"pytest-cov >=2.12.0,<5.0.0",
60+
"pytest >= 6.2.4,<8.0.0",
61+
"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",
@@ -81,7 +81,7 @@ test = [
8181
"types-dataclasses ==0.6.6",
8282
"python-socketio",
8383
"uvicorn[standard] == 0.22.0",
84-
"aiohttp == 3.8.4",
84+
"aiohttp == 3.8.5",
8585
]
8686
dev = [
8787
"pre-commit"

0 commit comments

Comments
 (0)