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:
Sebastian Rittau
2019-10-14 09:51:39 +02:00
committed by GitHub
parent 950f391704
commit 6507875f28
10 changed files with 216 additions and 193 deletions

View File

@@ -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]: ...

View File

@@ -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): ...