Fix abstract classes in 2.7 (#2247)

Part of #1476.
This commit is contained in:
Jelle Zijlstra
2018-06-17 09:21:17 -07:00
committed by Ivan Levkivskyi
parent 6b36b1befe
commit 8084dc1c1f
6 changed files with 55 additions and 34 deletions

View File

@@ -163,7 +163,10 @@ class Cursor(Iterator[Any]):
def setinputsizes(self, *args, **kwargs): ...
def setoutputsize(self, *args, **kwargs): ...
def __iter__(self) -> Cursor: ...
def __next__(self) -> Any: ...
if sys.version_info >= (3, 0):
def __next__(self) -> Any: ...
else:
def next(self) -> Any: ...
class DataError(DatabaseError): ...