mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Annotate Python 3.8 removals (#3359)
* macpath * time.clock() * Some cgi functions * XMLParser(html) and doctype() * unicode_internal * Two sqlite3 classes hidden * fileinput bufsize arg * Treeview.selection no longer takes arguments
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# Stubs for platform (Python 3.5)
|
||||
|
||||
from os import devnull as DEV_NULL
|
||||
from os import popen
|
||||
from typing import Tuple, NamedTuple
|
||||
|
||||
def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, Optional
|
||||
from typing import Any, List, Optional
|
||||
import tkinter
|
||||
|
||||
def tclobjs_to_py(adict): ...
|
||||
@@ -136,7 +136,10 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
||||
def parent(self, item): ...
|
||||
def prev(self, item): ...
|
||||
def see(self, item): ...
|
||||
def selection(self, selop: Optional[Any] = ..., items: Optional[Any] = ...): ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def selection(self) -> List[Any]: ...
|
||||
else:
|
||||
def selection(self, selop: Optional[Any] = ..., items: Optional[Any] = ...) -> List[Any]: ...
|
||||
def selection_set(self, items): ...
|
||||
def selection_add(self, items): ...
|
||||
def selection_remove(self, items): ...
|
||||
|
||||
Reference in New Issue
Block a user