mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-01 01:06:19 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
1 parent
f94d838814
commit
5ec4f06263
121 files changed
+1024
-4801
No files matched your search
@@ -3,16 +3,9 @@ from typing import 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: ...
|
||||
|
||||
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: ...
|
||||
|
||||
Reference in new issue
Block a user