diff --git a/boltons-stubs/strutils.pyi b/boltons-stubs/strutils.pyi index a9496ad..b411887 100644 --- a/boltons-stubs/strutils.pyi +++ b/boltons-stubs/strutils.pyi @@ -1,4 +1,4 @@ -from typing import Any, Dict, Iterator, List, Set, Tuple, Type, Union +from typing import Any, Dict, Iterator, List, Set, Sized, Tuple, Type, Union from uuid import UUID def asciify(text: str, ignore: bool = ...) -> bytes: ... @@ -19,6 +19,8 @@ def multi_replace( def parse_int_list( range_string: str, delim: str = ..., range_delim: str = ... ) -> List[int]: ... +def cardinalize(unit_noun: str, count: int) -> str: ... +def unit_len(sized_iterable: Sized, unit_noun: str = "item") -> str: ... class DeaccenterDict: def __missing__(self, key: int) -> int: ...