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

Conversation

@sourcery-ai
Copy link

@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^

return False
else:
return False
return bool(e.isdigit())
Copy link
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

return True
else:
return False
return bool(e.isdigit() or not e.isdigit() and e == "")
Copy link
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

return True
else:
return False
return bool(e.isdigit() or not e.isdigit() and e == "")
Copy link
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 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
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.

2 participants