Undefined variable 'RouletteResult'
192 result = RoutetteView.handle_bet_result(
193 Roulette.check_winner(option[0].lower())
194 )
195 if result == RouletteResult.LOSE:196 outcome = "Lose"
197 else:
198 outcome = "Win"
Undefined variable 'RoutetteView'
189 return interaction.user == self.author
190
191 async def on_selected(self, _, bet, option):
192 result = RoutetteView.handle_bet_result(193 Roulette.check_winner(option[0].lower())
194 )
195 if result == RouletteResult.LOSE:
Description
The variable name is not defined where it is used. This will lead to an error during the runtime. Make sure there is no typo. If the name was supposed to be imported, verify that you've actually imported the name.
Bad practice
import os.path
if os.path.exits('setup.cfg'): # misspelled `exists`
print('Found config file')
Preferred:
import os.path
if os.path.exists('setup.cfg'):
print('Found config file')