feat: add typehint for v1 driver
This commit is contained in:
parent
91385052ec
commit
fbd24a13c0
|
@ -37,7 +37,7 @@ TARGET_VERSION = 0
|
||||||
|
|
||||||
|
|
||||||
class Chrome:
|
class Chrome:
|
||||||
def __new__(cls, *args, emulate_touch=False, **kwargs):
|
def __new__(cls, *args, emulate_touch=False, **kwargs) -> _Chrome:
|
||||||
|
|
||||||
if not ChromeDriverManager.installed:
|
if not ChromeDriverManager.installed:
|
||||||
ChromeDriverManager(*args, **kwargs).install()
|
ChromeDriverManager(*args, **kwargs).install()
|
||||||
|
@ -105,7 +105,7 @@ class Chrome:
|
||||||
|
|
||||||
|
|
||||||
class ChromeOptions:
|
class ChromeOptions:
|
||||||
def __new__(cls, *args, **kwargs):
|
def __new__(cls, *args, **kwargs) -> _ChromeOptions:
|
||||||
if not ChromeDriverManager.installed:
|
if not ChromeDriverManager.installed:
|
||||||
ChromeDriverManager(*args, **kwargs).install()
|
ChromeDriverManager(*args, **kwargs).install()
|
||||||
if not ChromeDriverManager.selenium_patched:
|
if not ChromeDriverManager.selenium_patched:
|
||||||
|
|
Loading…
Reference in New Issue