Skip to content

Commit

Permalink
[Units] Add type hint for eightball function
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jul 31, 2023
1 parent f0f0818 commit 5f04608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion units/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random


def eightball():
def eightball() -> str:
# https://en.wikipedia.org/wiki/Magic_8-Ball#Possible_answers
return random.choice(( # nosec random
"It is certain", "It is decidedly so", "Without a doubt",
Expand Down

0 comments on commit 5f04608

Please sign in to comment.