From db4fd2d6971755653a2cd889a359c44857040a5b Mon Sep 17 00:00:00 2001 From: Neil Girdhar Date: Sat, 18 Feb 2023 18:01:25 -0500 Subject: [PATCH] Add object.__subclasshook__ --- 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