Skip to content

Commit

Permalink
don't create an unnecessary list
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Jul 25, 2024
1 parent 90c1671 commit ac16957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ def verify(self, world: typing.Type[World], player_name: str, plando_options: "P

def verify_keys(self) -> None:
if self.valid_keys:
data = set([text.at for text in self])
data = set(text.at for text in self)
dataset = set(word.casefold() for word in data) if self.valid_keys_casefold else set(data)
extra = dataset - self._valid_keys
if extra:
Expand Down

0 comments on commit ac16957

Please sign in to comment.