mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Remove useless overloads from sys.getsizeof (#9987)
This commit is contained in:
@@ -6,7 +6,7 @@ from importlib.abc import PathEntryFinder
|
||||
from importlib.machinery import ModuleSpec
|
||||
from io import TextIOWrapper
|
||||
from types import FrameType, ModuleType, TracebackType
|
||||
from typing import Any, NoReturn, Protocol, TextIO, TypeVar, overload
|
||||
from typing import Any, NoReturn, Protocol, TextIO, TypeVar
|
||||
from typing_extensions import Final, Literal, TypeAlias, final
|
||||
|
||||
_T = TypeVar("_T")
|
||||
@@ -239,10 +239,7 @@ def getfilesystemencoding() -> str: ...
|
||||
def getfilesystemencodeerrors() -> str: ...
|
||||
def getrefcount(__object: Any) -> int: ...
|
||||
def getrecursionlimit() -> int: ...
|
||||
@overload
|
||||
def getsizeof(obj: object) -> int: ...
|
||||
@overload
|
||||
def getsizeof(obj: object, default: int) -> int: ...
|
||||
def getsizeof(obj: object, default: int = ...) -> int: ...
|
||||
def getswitchinterval() -> float: ...
|
||||
def getprofile() -> ProfileFunction | None: ...
|
||||
def setprofile(profilefunc: ProfileFunction | None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user