mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
@@ -12,10 +12,6 @@ def insert_text(__string: str) -> None: ...
|
||||
def redisplay() -> None: ...
|
||||
def read_history_file(__filename: Optional[AnyPath] = ...) -> None: ...
|
||||
def write_history_file(__filename: Optional[AnyPath] = ...) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def append_history_file(__nelements: int, __filename: Optional[AnyPath] = ...) -> None: ...
|
||||
|
||||
def get_history_length() -> int: ...
|
||||
def set_history_length(__length: int) -> None: ...
|
||||
def clear_history() -> None: ...
|
||||
@@ -24,10 +20,6 @@ def get_history_item(__index: int) -> str: ...
|
||||
def remove_history_item(__pos: int) -> None: ...
|
||||
def replace_history_item(__pos: int, __line: str) -> None: ...
|
||||
def add_history(__string: str) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
def set_auto_history(__enabled: bool) -> None: ...
|
||||
|
||||
def set_startup_hook(__function: Optional[Callable[[], None]] = ...) -> None: ...
|
||||
def set_pre_input_hook(__function: Optional[Callable[[], None]] = ...) -> None: ...
|
||||
def set_completer(__function: _CompleterT = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user