fix: now supports python3.11+

This commit is contained in:
2026-02-20 22:22:37 +03:00
parent 11062107f1
commit b653ed5986
6 changed files with 190 additions and 11 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ BASE_URL = "https://vikingfile.com/api/"
@asynccontextmanager
async def _get_session(session: ClientSession | None) -> AsyncGenerator[ClientSession]:
async def _get_session(session: ClientSession | None) -> AsyncGenerator[ClientSession, None]:
close_session = session is None
session = session or ClientSession()
try: