From 710cf4ebba67198133bd02150b08e757c3fc9c0d Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Fri, 29 Nov 2024 01:42:08 +0100 Subject: [PATCH] Core: Add __iter__ to VerifyKeys (#3550) * Add __iter__ to VerifyKeys * Typing --- Options.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Options.py b/Options.py index 992348cb..d81f81fa 100644 --- a/Options.py +++ b/Options.py @@ -828,7 +828,10 @@ class VerifyKeys(metaclass=FreezeValidKeys): f"is not a valid location name from {world.game}. " f"Did you mean '{picks[0][0]}' ({picks[0][1]}% sure)") + def __iter__(self) -> typing.Iterator[typing.Any]: + return self.value.__iter__() + class OptionDict(Option[typing.Dict[str, typing.Any]], VerifyKeys, typing.Mapping[str, typing.Any]): default = {} supports_weighting = False