From 5453111d38348ba7774e8ad8d2413405763a84df Mon Sep 17 00:00:00 2001 From: Pradeep Kumar Srinivasan Date: Fri, 11 Aug 2023 15:08:57 -0700 Subject: [PATCH] Add readonly stub for `object.__str__`. Reviewed By: MaggieMoss Differential Revision: D48251322 fbshipit-source-id: 1b256b9cad89220805adbd77a128d0c935157e69 --- stubs/typeshed/typeshed/stdlib/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/typeshed/typeshed/stdlib/builtins.pyi b/stubs/typeshed/typeshed/stdlib/builtins.pyi index 21fd83c2d25..84e044e1be9 100644 --- a/stubs/typeshed/typeshed/stdlib/builtins.pyi +++ b/stubs/typeshed/typeshed/stdlib/builtins.pyi @@ -97,7 +97,7 @@ class object: def __delattr__(self, __name: str) -> None: ... def __eq__(self: ReadOnly[Self], __o: ReadOnly[object]) -> bool: ... def __ne__(self, __o: object) -> bool: ... - def __str__(self) -> str: ... # noqa: Y029 + def __str__(self: ReadOnly[Self]) -> str: ... # noqa: Y029 def __repr__(self: ReadOnly[Self]) -> str: ... # noqa: Y029 def __hash__(self) -> int: ... def __format__(self, __format_spec: str) -> str: ...