mirror of
https://github.com/PaiGramTeam/GramCore.git
synced 2024-11-25 07:36:27 +00:00
17 lines
435 B
Python
17 lines
435 B
Python
|
from asyncio import AbstractEventLoop
|
||
|
|
||
|
from playwright.async_api import Browser, Playwright as AsyncPlaywright
|
||
|
|
||
|
from gram_core.base_service import BaseService
|
||
|
|
||
|
__all__ = ("AioBrowser",)
|
||
|
|
||
|
class AioBrowser(BaseService.Dependence):
|
||
|
_browser: Browser | None
|
||
|
_playwright: AsyncPlaywright | None
|
||
|
_loop: AbstractEventLoop
|
||
|
|
||
|
@property
|
||
|
def browser(self) -> Browser | None: ...
|
||
|
async def get_browser(self) -> Browser: ...
|