make mypy happy

This commit is contained in:
flukx 2024-08-18 09:33:33 +02:00
parent 0c02fd0083
commit 72821a1203

View file

@ -61,7 +61,7 @@ def antilen(string: str):
"""Return a bigger number for shorter strings, except 0 for ""."""
return 1 / len(string) if string else 0
async def find_parts(parts: list[Part], search_string: str, max_number: int=10) -> list[Part]:
async def find_parts(parts: list[Part], search_string: str, max_number: int=10) -> Iterable[Part]:
"""Gives parts that the user might have searched for.
Args: