From 5d3bb81d1c9f888bd89a57f94a4d5242cff693c0 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 26 Nov 2021 19:52:52 +0000 Subject: [PATCH] Add `abc.update_abstractmethods` (#6387) --- stdlib/abc.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/abc.pyi b/stdlib/abc.pyi index 7896e910c..c9dbda103 100644 --- a/stdlib/abc.pyi +++ b/stdlib/abc.pyi @@ -1,3 +1,4 @@ +import sys from _typeshed import SupportsWrite from typing import Any, Callable, Tuple, Type, TypeVar @@ -24,3 +25,6 @@ def abstractclassmethod(callable: _FuncT) -> _FuncT: ... class ABC(metaclass=ABCMeta): ... def get_cache_token() -> object: ... + +if sys.version_info >= (3, 10): + def update_abstractmethods(cls: Type[_T]) -> Type[_T]: ...