mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
@@ -19,10 +19,7 @@ from typing import (
|
||||
Union,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
from reprlib import Repr
|
||||
else:
|
||||
from repr import Repr
|
||||
from repr import Repr
|
||||
|
||||
# the return type of sys.exc_info(), used by ErrorDuringImport.__init__
|
||||
_Exc_Info = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
|
||||
@@ -265,9 +262,5 @@ class ModuleScanner:
|
||||
def apropos(key: str) -> None: ...
|
||||
def ispath(x: Any) -> bool: ...
|
||||
def cli() -> None: ...
|
||||
|
||||
if sys.version_info < (3,):
|
||||
def serve(
|
||||
port: int, callback: Optional[Callable[[Any], None]] = ..., completer: Optional[Callable[[], None]] = ...
|
||||
) -> None: ...
|
||||
def gui() -> None: ...
|
||||
def serve(port: int, callback: Optional[Callable[[Any], None]] = ..., completer: Optional[Callable[[], None]] = ...) -> None: ...
|
||||
def gui() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user