Skip to content

Commit

Permalink
🚨 make linter happy (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Aug 18, 2023
1 parent 53bcae0 commit 9c4ca28
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion nonebot/drivers/httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def request(self, setup: Request) -> Response:
@override
@asynccontextmanager
async def websocket(self, setup: Request) -> AsyncGenerator[WebSocket, None]:
async with super(Mixin, self).websocket(setup) as ws:
async with super().websocket(setup) as ws:
yield ws


Expand Down
2 changes: 1 addition & 1 deletion nonebot/drivers/websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def type(self) -> str:

@override
async def request(self, setup: Request) -> Response:
return await super(Mixin, self).request(setup)
return await super().request(setup)

@override
@asynccontextmanager
Expand Down
3 changes: 1 addition & 2 deletions nonebot/internal/matcher/manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import (
TYPE_CHECKING,
Any,
List,
Type,
Tuple,
Expand Down Expand Up @@ -53,7 +52,7 @@ def __setitem__(self, key: int, value: List[Type["Matcher"]]) -> None:
def __delitem__(self, key: int) -> None:
del self.provider[key]

def __eq__(self, other: Any) -> bool:
def __eq__(self, other: object) -> bool:
return isinstance(other, MatcherManager) and self.provider == other.provider

def keys(self) -> KeysView[int]:
Expand Down
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6220,9 +6220,11 @@ pupa@^2.1.1:
escape-goat "^2.0.0"

pyright@^1.1.317:
version "1.1.317"
resolved "https://registry.npmjs.org/pyright/-/pyright-1.1.317.tgz#753ac481e2b9c9e2a7b9faf6e2a49a1dc1c73806"
integrity sha512-3tGq//Nmqfp8IDuFfQwF18dqDBq5SRo/OPBJLiW0p+VwDVSth1LS1fBrMy/u14Mqcdi7C+ARVnxXTBCpczZahg==
version "1.1.323"
resolved "https://registry.npmjs.org/pyright/-/pyright-1.1.323.tgz#49d4427ae55a6f030ec585bed7732e960b7b697b"
integrity sha512-H6CnGjaL/2lJJPFcV4G0zFP7s7jJPzVsPhQnbnS9m6JWJpb7OssX7y94icPpnZs4574oHergGH2zLvF8OZp5ag==
optionalDependencies:
fsevents "~2.3.2"

q@^1.1.2:
version "1.5.1"
Expand Down

0 comments on commit 9c4ca28

Please sign in to comment.