Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Sourcery Starbot ⭐ refactored apirogov/python-app-template #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions python_app_template/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function do_something refactored with the following changes:



# do_something(5) # should make type error