Added object.__sizeof__ (#865)

* Added object.__sizeof__

* Removed __sizeof__ inherited from object

* Made sqlite3 classes for Python 2 inherit from object

* Removed __sizeof__ inherited from object
This commit is contained in:
Andrey Vlasovskikh
2017-01-26 23:05:53 +03:00
committed by Łukasz Langa
parent 025f31dcc9
commit c8435f4315
5 changed files with 8 additions and 9 deletions

View File

@@ -79,12 +79,12 @@ def register_adapter(type: type, callable: Any) -> None: ...
# TODO: sqlite3.register_converter.__doc__ specifies callable as unknown
def register_converter(typename: str, callable: bytes) -> None: ...
class Cache:
class Cache(object):
def __init__(self, *args, **kwargs) -> None: ...
def display(self, *args, **kwargs) -> None: ...
def get(self, *args, **kwargs) -> None: ...
class Connection:
class Connection(object):
DataError = ... # type: Any
DatabaseError = ... # type: Any
Error = ... # type: Any
@@ -165,7 +165,7 @@ class NotSupportedError(DatabaseError): ...
class OperationalError(DatabaseError): ...
class OptimizedUnicode:
class OptimizedUnicode(object):
maketrans = ... # type: Any
def __init__(self, *args, **kwargs): ...
def capitalize(self, *args, **kwargs): ...
@@ -229,14 +229,13 @@ class OptimizedUnicode:
def __ne__(self, other): ...
def __rmod__(self, other): ...
def __rmul__(self, other): ...
def __sizeof__(self): ...
class PrepareProtocol:
class PrepareProtocol(object):
def __init__(self, *args, **kwargs): ...
class ProgrammingError(DatabaseError): ...
class Row:
class Row(object):
def __init__(self, *args, **kwargs): ...
def keys(self, *args, **kwargs): ...
def __eq__(self, other): ...
@@ -250,7 +249,7 @@ class Row:
def __lt__(self, other): ...
def __ne__(self, other): ...
class Statement:
class Statement(object):
def __init__(self, *args, **kwargs): ...
class Warning(Exception): ...