From 06755e10ba0d39e7e4c18fcc2663d9da564a71ad Mon Sep 17 00:00:00 2001 From: Neil Girdhar Date: Wed, 22 Feb 2023 18:08:25 -0500 Subject: [PATCH] Add `object.__subclasshook__` (#9755) --- stdlib/builtins.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 6f26df3b2a4f..511fa4d54cbd 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -110,6 +110,8 @@ class object: def __dir__(self) -> Iterable[str]: ... def __init_subclass__(cls) -> None: ... + @classmethod + def __subclasshook__(cls, __subclass: type) -> bool: ... class staticmethod(Generic[_R_co]): @property