Remove useless overloads from sys.getsizeof (#9987)

This commit is contained in:
Nikita Sobolev authored and GitHub committed 2023-03-30 13:23:56 +01:00
1 parent 2dd5e0462c
commit 619125b722
1 file changed
+2 -5
+2 -5
View File
@@ -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: ...