Skip to content

Commit b9e0ac9

Browse files
ambvJukkaL
authored andcommitted
Update typeshed (python#2896)
Requires fixing the return type of `__reduce__` in one example.
1 parent d2eaa08 commit b9e0ac9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test-data/stdlib-samples/3.2/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def __getstate__(self) -> object: # for pickle
164164
def __setstate__(self, state: Any) -> None: # for pickle
165165
self.setstate(state)
166166

167-
def __reduce__(self) -> object:
167+
def __reduce__(self) -> tuple:
168168
return self.__class__, (), self.getstate()
169169

170170
## -------------------- integer methods -------------------

0 commit comments

Comments
 (0)