mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-24 21:29:57 -07:00
wow I'm so tired I just changed the method name without changing what it actually does...
This commit is contained in:
@@ -973,7 +973,4 @@ 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
|
||||
if not isinstance(obj, typing.Iterable):
|
||||
return False
|
||||
obj_it: typing.Iterable[object] = obj
|
||||
return all(isinstance(v, str) for v in obj_it)
|
||||
return isinstance(obj, typing.Iterable)
|
||||
|
||||
Reference in New Issue
Block a user