mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-23 03:51:47 -07:00
typegard for iterable of any
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user