aboutsummaryrefslogtreecommitdiff
path: root/src/model/difficulty.py
diff options
context:
space:
mode:
authorJoris2020-05-31 17:47:13 +0200
committerJoris2020-05-31 17:47:14 +0200
commit74fd6f47b3683bd727a33f3312582485fa062b95 (patch)
tree87d4a3045e5585dde9e75cf957e755f47de61775 /src/model/difficulty.py
parent1bed85a9b107d1b03e71b848829cb7b1f33060f4 (diff)
downloadtodo-74fd6f47b3683bd727a33f3312582485fa062b95.tar.gz
todo-74fd6f47b3683bd727a33f3312582485fa062b95.tar.bz2
todo-74fd6f47b3683bd727a33f3312582485fa062b95.zip
Use double quotes instead of simple quotes
Follow advice from: https://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python
Diffstat (limited to 'src/model/difficulty.py')
-rw-r--r--src/model/difficulty.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/difficulty.py b/src/model/difficulty.py
index cbabd1e..e38f19b 100644
--- a/src/model/difficulty.py
+++ b/src/model/difficulty.py
@@ -13,18 +13,18 @@ values = [
def format(difficulty: Difficulty) -> str:
if difficulty == Difficulty.EASY:
- return 'Easy'
+ return "Easy"
elif difficulty == Difficulty.NORMAL:
- return 'Normal'
+ return "Normal"
elif difficulty == Difficulty.HARD:
- return 'Hard'
+ return "Hard"
def parse(string: str) -> Optional[Difficulty]:
- if string == 'Easy':
+ if string == "Easy":
return Difficulty.EASY
- elif string == 'Normal':
+ elif string == "Normal":
return Difficulty.MIDDLE
- elif string == 'Hard':
+ elif string == "Hard":
return Difficulty.HARD
else:
return None