remove usage of keys()

This commit is contained in:
foamyguy 2024-10-17 11:53:05 -05:00
parent 7f0d2e03d9
commit 8a7026c5a9
3 changed files with 3 additions and 3 deletions

View file

@ -272,7 +272,7 @@ class SpiritBoard(displayio.Group):
# loop over each character in the word
for character in word:
# if the character is in our locations mapping
if character in SpiritBoard.LOCATIONS.keys():
if character in SpiritBoard.LOCATIONS:
# slide the planchette to the current characters location
self.slide_planchette(SpiritBoard.LOCATIONS[character],
delay=delay, step_size=step_size)

View file

@ -272,7 +272,7 @@ class SpiritBoard(displayio.Group):
# loop over each character in the word
for character in word:
# if the character is in our locations mapping
if character in SpiritBoard.LOCATIONS.keys():
if character in SpiritBoard.LOCATIONS:
# slide the planchette to the current characters location
self.slide_planchette(SpiritBoard.LOCATIONS[character],
delay=delay, step_size=step_size)

View file

@ -272,7 +272,7 @@ class SpiritBoard(displayio.Group):
# loop over each character in the word
for character in word:
# if the character is in our locations mapping
if character in SpiritBoard.LOCATIONS.keys():
if character in SpiritBoard.LOCATIONS:
# slide the planchette to the current characters location
self.slide_planchette(SpiritBoard.LOCATIONS[character],
delay=delay, step_size=step_size)