Skip to content

Commit

Permalink
Add __iter__ to VerifyKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Jun 16, 2024
1 parent 898509e commit b252b81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,10 @@ def verify(self, world: typing.Type[World], player_name: str, plando_options: "P
f"is not a valid location name from {world.game}. "
f"Did you mean '{picks[0][0]}' ({picks[0][1]}% sure)")

def __iter__(self):
return self.value.__iter__()


class OptionDict(Option[typing.Dict[str, typing.Any]], VerifyKeys, typing.Mapping[str, typing.Any]):
default = {}
supports_weighting = False
Expand Down

0 comments on commit b252b81

Please sign in to comment.