|
21 | 21 |
|
22 | 22 | from bs4 import BeautifulSoup |
23 | 23 | from urllib.parse import urljoin |
24 | | -from typing import Generator, Union |
| 24 | +from typing import Generator, Union, Optional |
25 | 25 | from functools import cached_property |
26 | 26 | from base_api.base import BaseCore, setup_logger |
27 | 27 |
|
|
57 | 57 |
|
58 | 58 |
|
59 | 59 | class Video: |
60 | | - def __init__(self, url: str, enable_html_scraping: bool = False, core = None): |
| 60 | + def __init__(self, url: str, enable_html_scraping: bool = False, core: Optional[BaseCore] = None): |
61 | 61 | self.core = core |
62 | 62 | self.url = url |
63 | 63 | self.enable_html = enable_html_scraping |
@@ -355,7 +355,7 @@ def download(self, quality, path, callback=None, mode=Encoding.mp4_h264, no_titl |
355 | 355 |
|
356 | 356 |
|
357 | 357 | class Pornstar: |
358 | | - def __init__(self, url: str, enable_html_scraping: bool = False, core = None): |
| 358 | + def __init__(self, url: str, enable_html_scraping: bool = False, core: Optional[BaseCore] = None): |
359 | 359 | self.core = core |
360 | 360 | self.url = url |
361 | 361 | self.enable_html_scraping = enable_html_scraping |
@@ -486,7 +486,7 @@ def biography(self) -> str: |
486 | 486 |
|
487 | 487 |
|
488 | 488 | class Client: |
489 | | - def __init__(self, core = None): |
| 489 | + def __init__(self, core: Optional[BaseCore] = None): |
490 | 490 | self.core = core or BaseCore() |
491 | 491 | self.logger = setup_logger(name="EPorner API - [Client]", log_file=None, level=logging.CRITICAL) |
492 | 492 |
|
|
0 commit comments