Skip to content
This repository was archived by the owner on May 29, 2020. It is now read-only.

Sourcery refactored master branch#6

Open
sourcery-ai[bot] wants to merge 1 commit intomasterfrom
sourcery/master
Open

Sourcery refactored master branch#6
sourcery-ai[bot] wants to merge 1 commit intomasterfrom
sourcery/master

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot commented May 28, 2020

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment thread data_entry_screen.py
return False
else:
return False
return bool(e.isdigit())
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function DataScreen.only_numeric_input refactored with the following changes:

  • Merge duplicate blocks in conditional
  • Simplify conditional into return statement

Comment thread init_screen.py
return True
else:
return False
return bool(e.isdigit() or not e.isdigit() and e == "")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function FirstScreen.only_numeric_input refactored with the following changes:

  • Merge duplicate blocks in conditional
  • Simplify conditional into return statement

Comment thread screens.py
return True
else:
return False
return bool(e.isdigit() or not e.isdigit() and e == "")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function FirstScreen.only_numeric_input refactored with the following changes:

  • Merge duplicate blocks in conditional
  • Simplify conditional into return statement

Comment thread screens.py
Comment on lines -198 to +193
if e.isdigit():
return True
elif e == "":
return True
else:
return False
return bool(e.isdigit() or not e.isdigit() and e == "")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function SecondScreen.only_numeric_input refactored with the following changes:

  • Merge duplicate blocks in conditional
  • Simplify conditional into return statement

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant