diff options
| author | 2022-01-10 22:09:23 -0500 | |
|---|---|---|
| committer | 2022-02-09 18:13:38 -0500 | |
| commit | de66d41a7ab350b684ed7b5f829136ebdb4d9c37 (patch) | |
| tree | a867ac44c939d57e6b8db2e7788c344e497ea936 /bot/exts/events/trivianight/_game.py | |
| parent | default timer is at 20 seconds (diff) | |
Apply suggestions from code review
Co-authored-by: Johannes Christ <[email protected]>
Diffstat (limited to 'bot/exts/events/trivianight/_game.py')
| -rw-r--r-- | bot/exts/events/trivianight/_game.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bot/exts/events/trivianight/_game.py b/bot/exts/events/trivianight/_game.py index 994006bf..a47025c2 100644 --- a/bot/exts/events/trivianight/_game.py +++ b/bot/exts/events/trivianight/_game.py @@ -18,11 +18,10 @@ class QuestionData(TypedDict): time: Optional[int] -UserGuess = tuple[ - str, # The answer that was guessed - bool, # Whether the answer can be changed again - float # The time it took to guess -] +class UserGuess(NamedTuple): + answer: str + editable: bool + elapsed: float class QuestionClosed(RuntimeError): |