init
Docker Hub / build-and-push (push) Failing after 13s

This commit is contained in:
kislovdm
2026-06-12 00:42:55 +03:00
parent 64fe9c466e
commit e7c32da1f9
51 changed files with 2454 additions and 3248 deletions
+22
View File
@@ -0,0 +1,22 @@
import asyncio
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pymax import WebClient
class MaxClientHolder:
def __init__(self) -> None:
self.client: WebClient | None = None
self.ready = asyncio.Event()
self.my_user_id: int | None = None
def set_client(self, client: "WebClient", my_user_id: int | None) -> None:
self.client = client
self.my_user_id = my_user_id
self.ready.set()
async def wait_client(self) -> "WebClient":
await self.ready.wait()
assert self.client is not None
return self.client