Skip to content

Commit 13c13e0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3ca1dc1 commit 13c13e0

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

Diff for: src/graia/amnesia/builtins/asgi/asgitypes.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,9 @@ class LifespanShutdownFailedEvent(TypedDict):
238238

239239

240240
class ASGI2Protocol(Protocol):
241-
def __init__(self, scope: Scope) -> None:
242-
...
241+
def __init__(self, scope: Scope) -> None: ...
243242

244-
async def __call__(self, receive: ASGIReceiveCallable, send: ASGISendCallable) -> None:
245-
...
243+
async def __call__(self, receive: ASGIReceiveCallable, send: ASGISendCallable) -> None: ...
246244

247245

248246
ASGI2Application = Type[ASGI2Protocol]

Diff for: src/graia/amnesia/message/chain.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,13 @@ def join(self, *chains: Self | Iterable[Self]) -> Self:
174174
__contains__ = has
175175

176176
@overload
177-
def __getitem__(self, item: type[E]) -> list[E]:
178-
...
177+
def __getitem__(self, item: type[E]) -> list[E]: ...
179178

180179
@overload
181-
def __getitem__(self, item: int) -> Element:
182-
...
180+
def __getitem__(self, item: int) -> Element: ...
183181

184182
@overload
185-
def __getitem__(self, item: slice) -> Self:
186-
...
183+
def __getitem__(self, item: slice) -> Self: ...
187184

188185
def __getitem__(self, item: type[Element] | int | slice) -> Any:
189186
"""取出子消息链, 或元素.

0 commit comments

Comments
 (0)