From 03f514971a647601ce319190bc2e1277adfaf647 Mon Sep 17 00:00:00 2001 From: "andrey.matveev" Date: Mon, 29 Mar 2021 17:49:44 +0700 Subject: [PATCH] PEP 604: Add or operator to class type --- stdlib/builtins.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index ff2312727fae..e4cd9c10f647 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -156,6 +156,7 @@ class type(object): def __subclasscheck__(self, subclass: type) -> bool: ... @classmethod def __prepare__(metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any) -> Mapping[str, Any]: ... + def __or__(self, t: type) -> type: ... class super(object): @overload