diff --git a/python_app_template/main.py b/python_app_template/main.py index f523825..e1a8f3e 100644 --- a/python_app_template/main.py +++ b/python_app_template/main.py @@ -12,10 +12,7 @@ def do_something(x: bool) -> str: Returns: A string that depends on the argument. """ - if x: - return "hello" - else: - return "world" + return "hello" if x else "world" # do_something(5) # should make type error