From f9135c5aa0d641fbda34ced2a0ece29317c49722 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 9 Jan 2017 09:22:20 -0800 Subject: [PATCH] add __init_subclass__ to 3.6 (#813) See also https://github.com/python/mypy/pull/2654 --- stdlib/3/builtins.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 7081f5e0c..7000ad5f7 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -47,6 +47,9 @@ class object: def __getattribute__(self, name: str) -> Any: ... def __delattr__(self, name: str) -> None: ... + if sys.version_info >= (3, 6): + def __init_subclass__(cls) -> None: ... + class type: __bases__ = ... # type: Tuple[type, ...] __name__ = ... # type: str