2 from typing import Callable, Sequence
4 class Error(Exception): ...
6 if sys.version_info >= (3, 7):
8 name: str, klass: Callable[[], BaseBrowser] | None, instance: BaseBrowser | None = ..., *, preferred: bool = ...
13 name: str, klass: Callable[[], BaseBrowser] | None, instance: BaseBrowser | None = ..., update_tryorder: int = ...
16 def get(using: str | None = ...) -> BaseBrowser: ...
17 def open(url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
18 def open_new(url: str) -> bool: ...
19 def open_new_tab(url: str) -> bool: ...
25 def __init__(self, name: str = ...) -> None: ...
26 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
27 def open_new(self, url: str) -> bool: ...
28 def open_new_tab(self, url: str) -> bool: ...
30 class GenericBrowser(BaseBrowser):
34 def __init__(self, name: str | Sequence[str]) -> None: ...
35 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
37 class BackgroundBrowser(GenericBrowser):
38 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
40 class UnixBrowser(BaseBrowser):
41 raise_opts: list[str] | None
44 remote_args: list[str]
46 remote_action_newwin: str
47 remote_action_newtab: str
48 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
50 class Mozilla(UnixBrowser):
51 remote_args: list[str]
53 remote_action_newwin: str
54 remote_action_newtab: str
57 class Galeon(UnixBrowser):
59 remote_args: list[str]
61 remote_action_newwin: str
64 class Chrome(UnixBrowser):
65 remote_args: list[str]
67 remote_action_newwin: str
68 remote_action_newtab: str
71 class Opera(UnixBrowser):
72 remote_args: list[str]
74 remote_action_newwin: str
75 remote_action_newtab: str
78 class Elinks(UnixBrowser):
79 remote_args: list[str]
81 remote_action_newwin: str
82 remote_action_newtab: str
86 class Konqueror(BaseBrowser):
87 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
89 class Grail(BaseBrowser):
90 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
92 if sys.platform == "win32":
93 class WindowsDefault(BaseBrowser):
94 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
96 if sys.platform == "darwin":
97 class MacOSX(BaseBrowser):
99 def __init__(self, name: str) -> None: ...
100 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...
101 class MacOSXOSAScript(BaseBrowser):
102 def __init__(self, name: str) -> None: ...
103 def open(self, url: str, new: int = ..., autoraise: bool = ...) -> bool: ...