mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
import sys
|
||||
from typing import Any, Optional, Callable, List, Text, Union, Sequence
|
||||
from typing import Any, Callable, List, Optional, Sequence, Text, Union
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def register(name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: Optional[BaseBrowser] = ..., *, preferred: bool = ...) -> None: ...
|
||||
def register(
|
||||
name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: Optional[BaseBrowser] = ..., *, preferred: bool = ...
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def register(name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: Optional[BaseBrowser] = ..., update_tryorder: int = ...) -> None: ...
|
||||
def register(
|
||||
name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: Optional[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: ...
|
||||
@@ -85,16 +91,15 @@ class Konqueror(BaseBrowser):
|
||||
class Grail(BaseBrowser):
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
if sys.platform == 'win32':
|
||||
if sys.platform == "win32":
|
||||
class WindowsDefault(BaseBrowser):
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
if sys.platform == "darwin":
|
||||
class MacOSX(BaseBrowser):
|
||||
name: str
|
||||
def __init__(self, name: Text) -> None: ...
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
class MacOSXOSAScript(BaseBrowser):
|
||||
def __init__(self, name: Text) -> None: ...
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user