From 54c0e058feae1a389effeba21b8440978f087d7b Mon Sep 17 00:00:00 2001 From: rechen Date: Wed, 21 Feb 2024 11:57:07 -0800 Subject: [PATCH] Add missing __reduce__ method to builtins.object. PiperOrigin-RevId: 609075254 --- pytype/stubs/builtins/builtins.pytd | 1 + 1 file changed, 1 insertion(+) diff --git a/pytype/stubs/builtins/builtins.pytd b/pytype/stubs/builtins/builtins.pytd index c1ccfa9ef..fcad0470e 100644 --- a/pytype/stubs/builtins/builtins.pytd +++ b/pytype/stubs/builtins/builtins.pytd @@ -255,6 +255,7 @@ class object(): def __hash__(self) -> int: ... def __setattr__(self, name, value) -> None: ... def __getattribute__(self, name) -> Any: ... + def __reduce__(self) -> str | tuple[Any, ...]: ... def __new__(cls: Type[_T]) -> _T: ... # Used by special_builtins.Object to handler super.__new__. @staticmethod