diff --git a/stdlib/3/webbrowser.pyi b/stdlib/3/webbrowser.pyi index 2c7180802..0faa40c62 100644 --- a/stdlib/3/webbrowser.pyi +++ b/stdlib/3/webbrowser.pyi @@ -2,97 +2,97 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any +from typing import Any, Optional, Callable, List class Error(Exception): ... -def register(name, klass, instance=..., update_tryorder=...): ... -def get(using=...): ... -def open(url, new=..., autoraise=...): ... -def open_new(url): ... -def open_new_tab(url): ... +def register(name: str, klass: Optional[Callable[[], BaseBrowser]], instance: BaseBrowser=..., update_tryorder: int=...) -> None: ... +def get(using: str=...) -> BaseBrowser: ... +def open(url: str, new: int=..., autoraise: bool=...) -> bool: ... +def open_new(url: str) -> bool: ... +def open_new_tab(url: str) -> bool: ... class BaseBrowser: - args = ... # type: Any - name = ... # type: Any - basename = ... # type: Any - def __init__(self, name=...) -> None: ... - def open(self, url, new=..., autoraise=...): ... - def open_new(self, url): ... - def open_new_tab(self, url): ... + args = ... # type: List[str] + name = ... # type: str + basename = ... # type: str + def __init__(self, name: str=...) -> None: ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... + def open_new(self, url: str) -> bool: ... + def open_new_tab(self, url: str) -> bool: ... class GenericBrowser(BaseBrowser): - name = ... # type: Any - args = ... # type: Any - basename = ... # type: Any - def __init__(self, name) -> None: ... - def open(self, url, new=..., autoraise=...): ... + name = ... # type: List[str] + args = ... # type: str + basename = ... # type: str + def __init__(self, name: str) -> None: ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class BackgroundBrowser(GenericBrowser): - def open(self, url, new=..., autoraise=...): ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class UnixBrowser(BaseBrowser): - raise_opts = ... # type: Any - background = ... # type: Any - redirect_stdout = ... # type: Any - remote_args = ... # type: Any - remote_action = ... # type: Any - remote_action_newwin = ... # type: Any - remote_action_newtab = ... # type: Any - def open(self, url, new=..., autoraise=...): ... + raise_opts = ... # type: List[str] + background = ... # type: bool + redirect_stdout = ... # type: bool + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class Mozilla(UnixBrowser): - raise_opts = ... # type: Any - remote_args = ... # type: Any - remote_action = ... # type: Any - remote_action_newwin = ... # type: Any - remote_action_newtab = ... # type: Any - background = ... # type: Any + raise_opts = ... # type: List[str] + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Galeon(UnixBrowser): - raise_opts = ... # type: Any - remote_args = ... # type: Any - remote_action = ... # type: Any - remote_action_newwin = ... # type: Any - background = ... # type: Any + raise_opts = ... # type: List[str] + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + background = ... # type: bool class Chrome(UnixBrowser): - remote_args = ... # type: Any - remote_action = ... # type: Any - remote_action_newwin = ... # type: Any - remote_action_newtab = ... # type: Any - background = ... # type: Any + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Opera(UnixBrowser): - raise_opts = ... # type: Any - remote_args = ... # type: Any - remote_action = ... # type: Any - remote_action_newwin = ... # type: Any - remote_action_newtab = ... # type: Any - background = ... # type: Any + raise_opts = ... # type: List[str] + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Elinks(UnixBrowser): - remote_args = ... # type: Any - remote_action = ... # type: Any - remote_action_newwin = ... # type: Any - remote_action_newtab = ... # type: Any - background = ... # type: Any - redirect_stdout = ... # type: Any + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool + redirect_stdout = ... # type: bool class Konqueror(BaseBrowser): - def open(self, url, new=..., autoraise=...): ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class Grail(BaseBrowser): - def open(self, url, new=..., autoraise=...): ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class WindowsDefault(BaseBrowser): - def open(self, url, new=..., autoraise=...): ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class MacOSX(BaseBrowser): - name = ... # type: Any - def __init__(self, name) -> None: ... - def open(self, url, new=..., autoraise=...): ... + name = ... # type: str + def __init__(self, name: str) -> None: ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class MacOSXOSAScript(BaseBrowser): - def __init__(self, name) -> None: ... - def open(self, url, new=..., autoraise=...): ... + def __init__(self, name: str) -> None: ... + def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ...