mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)
* run script and do some manual changes (Akuli) * do the whole thing manually (srittau) * merge changes (Akuli) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from types import CodeType
|
||||
from typing import Any, Callable, Mapping, Optional
|
||||
|
||||
@@ -12,25 +11,15 @@ class InteractiveInterpreter:
|
||||
|
||||
class InteractiveConsole(InteractiveInterpreter):
|
||||
def __init__(self, locals: Optional[Mapping[str, Any]] = ..., filename: str = ...) -> None: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
def interact(self, banner: Optional[str] = ..., exitmsg: Optional[str] = ...) -> None: ...
|
||||
else:
|
||||
def interact(self, banner: Optional[str] = ...) -> None: ...
|
||||
def interact(self, banner: Optional[str] = ..., exitmsg: Optional[str] = ...) -> None: ...
|
||||
def push(self, line: str) -> bool: ...
|
||||
def resetbuffer(self) -> None: ...
|
||||
def raw_input(self, prompt: str = ...) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
def interact(
|
||||
banner: Optional[str] = ...,
|
||||
readfunc: Optional[Callable[[str], str]] = ...,
|
||||
local: Optional[Mapping[str, Any]] = ...,
|
||||
exitmsg: Optional[str] = ...,
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def interact(
|
||||
banner: Optional[str] = ..., readfunc: Optional[Callable[[str], str]] = ..., local: Optional[Mapping[str, Any]] = ...
|
||||
) -> None: ...
|
||||
|
||||
def interact(
|
||||
banner: Optional[str] = ...,
|
||||
readfunc: Optional[Callable[[str], str]] = ...,
|
||||
local: Optional[Mapping[str, Any]] = ...,
|
||||
exitmsg: Optional[str] = ...,
|
||||
) -> None: ...
|
||||
def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
||||
|
||||
Reference in New Issue
Block a user