operator.countOf takes Iterable (#6431)

This commit is contained in:
Akuli
2021-11-29 00:34:05 +02:00
committed by GitHub
parent d0ce310f55
commit 71999b7cde

View File

@@ -5,6 +5,7 @@ from typing import (
Callable,
Container,
Generic,
Iterable,
Mapping,
MutableMapping,
MutableSequence,
@@ -54,7 +55,7 @@ def truediv(__a: Any, __b: Any) -> Any: ...
def xor(__a: Any, __b: Any) -> Any: ...
def concat(__a: Sequence[_T], __b: Sequence[_T]) -> Sequence[_T]: ...
def contains(__a: Container[Any], __b: Any) -> bool: ...
def countOf(__a: Container[Any], __b: Any) -> int: ...
def countOf(__a: Iterable[Any], __b: Any) -> int: ...
@overload
def delitem(__a: MutableSequence[Any], __b: SupportsIndex) -> None: ...
@overload