Skip to content

Commit df93a72

Browse files
committed
feat: allow manully call __aexit__
1 parent 40b9268 commit df93a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: aiotieba/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __init__(
175175
async def __aenter__(self) -> "Client":
176176
return self
177177

178-
async def __aexit__(self, exc_type, exc_val, exc_tb) -> None:
178+
async def __aexit__(self, exc_type=None, exc_val=None, exc_tb=None) -> None:
179179
await self._ws_core.close()
180180
await self._connector.close()
181181

0 commit comments

Comments
 (0)