Skip to content

Commit 5b27760

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 811ca58 commit 5b27760

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/django_flyio/middleware.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ class FlyResponseMiddleware:
3131

3232
def __init__(
3333
self,
34-
get_response: (
35-
Callable[[HttpRequest], HttpResponseBase] | Callable[[HttpRequest], Awaitable[HttpResponseBase]]
36-
),
34+
get_response: Callable[[HttpRequest], HttpResponseBase] | Callable[[HttpRequest], Awaitable[HttpResponseBase]],
3735
) -> None:
3836
self.get_response = get_response
3937
if asyncio.iscoroutinefunction(self.get_response):
@@ -74,9 +72,7 @@ class FlyReplayMiddleware:
7472

7573
def __init__(
7674
self,
77-
get_response: (
78-
Callable[[HttpRequest], HttpResponseBase] | Callable[[HttpRequest], Awaitable[HttpResponseBase]]
79-
),
75+
get_response: Callable[[HttpRequest], HttpResponseBase] | Callable[[HttpRequest], Awaitable[HttpResponseBase]],
8076
) -> None:
8177
self.get_response = get_response
8278
if asyncio.iscoroutinefunction(self.get_response):

src/django_flyio/routers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def db_for_read(self, model, **hints) -> str: # type: ignore [no-untyped-def]
1010
def db_for_write(self, model, **hints) -> str: # type: ignore [no-untyped-def] # noqa: ARG002
1111
return "default"
1212

13-
def allow_relation(self, obj1, obj2, **hints) -> bool: # type: ignore [no-untyped-def] # pragma: no cover # noqa: ARG002, E501
13+
def allow_relation(self, obj1, obj2, **hints) -> bool: # type: ignore [no-untyped-def] # pragma: no cover # noqa: ARG002
1414
return True
1515

16-
def allow_migrate(self, db, app_label, **hints) -> bool: # type: ignore [no-untyped-def] # pragma: no cover # noqa: ARG002, E501
16+
def allow_migrate(self, db, app_label, **hints) -> bool: # type: ignore [no-untyped-def] # pragma: no cover # noqa: ARG002
1717
return True

0 commit comments

Comments
 (0)