From 74fd6f47b3683bd727a33f3312582485fa062b95 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 31 May 2020 17:47:13 +0200 Subject: Use double quotes instead of simple quotes Follow advice from: https://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python --- src/model/difficulty.py | 12 ++++++------ src/model/priority.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/model') 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 diff --git a/src/model/priority.py b/src/model/priority.py index 76cfd62..5948104 100644 --- a/src/model/priority.py +++ b/src/model/priority.py @@ -13,18 +13,18 @@ values = [ def format(priority: Priority) -> str: if priority == Priority.LOW: - return 'Low' + return "Low" elif priority == Priority.MIDDLE: - return 'Middle' + return "Middle" elif priority == Priority.HIGH: - return 'High' + return "High" def parse(string: str) -> Optional[Priority]: - if string == 'Low': + if string == "Low": return Priority.LOW - elif string == 'Middle': + elif string == "Middle": return Priority.MIDDLE - elif string == 'High': + elif string == "High": return Priority.HIGH else: return None -- cgit v1.2.3