Add abc.update_abstractmethods (#6387)

This commit is contained in:
Alex Waygood
2021-11-26 19:52:52 +00:00
committed by GitHub
parent 8431e6c7c3
commit 5d3bb81d1c

View File

@@ -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]: ...