mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Update signature of webbrowser.register for Python 3.7 (#2865)
This commit is contained in:
committed by
Jelle Zijlstra
parent
26fefcc704
commit
66bdf523ff
@@ -3,7 +3,10 @@ from typing import Any, Optional, Callable, List, Text, Union, Sequence
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
def register(name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: BaseBrowser = ..., update_tryorder: int = ...) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def register(name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: BaseBrowser = ..., *, preferred: bool = ...) -> None: ...
|
||||
else:
|
||||
def register(name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: BaseBrowser = ..., update_tryorder: int = ...) -> None: ...
|
||||
def get(using: Optional[Text] = ...) -> BaseBrowser: ...
|
||||
def open(url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
def open_new(url: Text) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user