mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
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:
committed by
Łukasz Langa
parent
025f31dcc9
commit
c8435f4315
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user