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

@@ -102,10 +102,11 @@ def enable_shared_cache(do_enable: int) -> None: ...
def register_adapter(type: Type[_T], callable: Callable[[_T], Union[int, float, str, bytes]]) -> None: ...
def register_converter(typename: str, callable: Callable[[bytes], Any]) -> None: ...
class Cache(object):
def __init__(self, *args, **kwargs) -> None: ...
def display(self, *args, **kwargs) -> None: ...
def get(self, *args, **kwargs) -> None: ...
if sys.version_info < (3, 8):
class Cache(object):
def __init__(self, *args, **kwargs) -> None: ...
def display(self, *args, **kwargs) -> None: ...
def get(self, *args, **kwargs) -> None: ...
class Connection(object):
DataError: Any
@@ -283,7 +284,8 @@ class Row(object):
def __lt__(self, other): ...
def __ne__(self, other): ...
class Statement(object):
def __init__(self, *args, **kwargs): ...
if sys.version_info < (3, 8):
class Statement(object):
def __init__(self, *args, **kwargs): ...
class Warning(Exception): ...