mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-29 02:57:22 +00:00
233e7ab58d
Co-authored-by: luoshuijs <luoshuijs@outlook.com> Co-authored-by: Karako <karakohear@gmail.com> Co-authored-by: xtaodada <xtao@xtaolink.cn>
17 lines
430 B
Python
17 lines
430 B
Python
from asyncio import AbstractEventLoop
|
|
|
|
from playwright.async_api import Browser, Playwright as AsyncPlaywright
|
|
|
|
from 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: ...
|