Skip to content

Commit a32d8a9

Browse files
tharvikgvanrossum
authored andcommitted
add types to sys.getrefcount (#237)
1 parent 25a45d6 commit a32d8a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/2.7/sys.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def getcheckinterval() -> int: ... # deprecated
116116
def getdefaultencoding() -> str: ...
117117
def getdlopenflags() -> int: ...
118118
def getfilesystemencoding() -> Union[str, None]: ...
119-
def getrefcount(object) -> int: ...
119+
def getrefcount(arg: Any) -> int: ...
120120
def getrecursionlimit() -> int: ...
121121
def getsizeof(obj: object, default: int = ...) -> int: ...
122122
def getprofile() -> None: ...

stdlib/3/sys.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def getcheckinterval() -> int: ... # deprecated
125125
def getdefaultencoding() -> str: ...
126126
def getdlopenflags() -> int: ... # Unix only
127127
def getfilesystemencoding() -> str: ... # cannot return None
128-
def getrefcount(object) -> int: ...
128+
def getrefcount(arg: Any) -> int: ...
129129
def getrecursionlimit() -> int: ...
130130

131131
@overload

0 commit comments

Comments
 (0)