From a32d8a9da6fc1757b56195e7ab7645b66d85e320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Rousset?= Date: Thu, 2 Jun 2016 09:27:37 +0200 Subject: [PATCH] add types to sys.getrefcount (#237) --- stdlib/2.7/sys.pyi | 2 +- stdlib/3/sys.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/sys.pyi b/stdlib/2.7/sys.pyi index 8bd920fad..a1c0247dd 100644 --- a/stdlib/2.7/sys.pyi +++ b/stdlib/2.7/sys.pyi @@ -116,7 +116,7 @@ def getcheckinterval() -> int: ... # deprecated def getdefaultencoding() -> str: ... def getdlopenflags() -> int: ... def getfilesystemencoding() -> Union[str, None]: ... -def getrefcount(object) -> int: ... +def getrefcount(arg: Any) -> int: ... def getrecursionlimit() -> int: ... def getsizeof(obj: object, default: int = ...) -> int: ... def getprofile() -> None: ... diff --git a/stdlib/3/sys.pyi b/stdlib/3/sys.pyi index b3ba22aee..accaadf0a 100644 --- a/stdlib/3/sys.pyi +++ b/stdlib/3/sys.pyi @@ -125,7 +125,7 @@ def getcheckinterval() -> int: ... # deprecated def getdefaultencoding() -> str: ... def getdlopenflags() -> int: ... # Unix only def getfilesystemencoding() -> str: ... # cannot return None -def getrefcount(object) -> int: ... +def getrefcount(arg: Any) -> int: ... def getrecursionlimit() -> int: ... @overload