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

@@ -46,6 +46,7 @@ class object:
def __format__(self, format_spec: str) -> str: ...
def __getattribute__(self, name: str) -> Any: ...
def __delattr__(self, name: str) -> None: ...
def __sizeof__(self) -> int: ...
if sys.version_info >= (3, 6):
def __init_subclass__(cls) -> None: ...

View File

@@ -224,7 +224,6 @@ class Decimal(SupportsInt, SupportsFloat, SupportsAbs[Decimal], SupportsRound[in
def __rpow__(self, other: int) -> Decimal: ...
def __rsub__(self, other: int) -> Decimal: ...
def __rtruediv__(self, other: int) -> Decimal: ...
def __sizeof__(self) -> int: ...
def __sub__(self, other: _Decimal) -> Decimal: ...
def __truediv__(self, other: _Decimal) -> Decimal: ...
def __trunc__(self) -> int: ...

View File

@@ -229,7 +229,6 @@ class OptimizedUnicode:
def __ne__(self, other): ...
def __rmod__(self, other): ...
def __rmul__(self, other): ...
def __sizeof__(self): ...
class PrepareProtocol:
def __init__(self, *args, **kwargs): ...