typegard for iterable of any

This commit is contained in:
Jouramie
2024-03-06 00:12:52 -05:00
committed by jouramie
parent 3b716c5a25
commit 961ac03ad9
+1 -1
View File
@@ -969,7 +969,7 @@ class RepeatableChain:
return sum(len(iterable) for iterable in self.iterable)
def is_iterable_but_str(obj: object) -> TypeGuard[typing.Iterable[str]]:
def is_iterable_but_str(obj: object) -> TypeGuard[typing.Iterable[typing.Any]]:
""" but not a `str` (because technically, `str` is `Iterable[str]`) """
if isinstance(obj, str):
return False