From 71999b7cde4c4307c041d28bd7642cbb976f25ef Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 29 Nov 2021 00:34:05 +0200 Subject: [PATCH] operator.countOf takes Iterable (#6431) --- stdlib/_operator.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/_operator.pyi b/stdlib/_operator.pyi index a0c709681..81a72b551 100644 --- a/stdlib/_operator.pyi +++ b/stdlib/_operator.pyi @@ -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