mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-11 14:08:22 +08:00
operator.countOf takes Iterable (#6431)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user