-
Notifications
You must be signed in to change notification settings - Fork 0
Sourcery refactored master branch #6
base: master
Are you sure you want to change the base?
Conversation
if e.isdigit(): | ||
return True | ||
elif e == "": | ||
return False | ||
else: | ||
return False | ||
return bool(e.isdigit()) |
There was a problem hiding this comment.
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
if e.isdigit(): | ||
return True | ||
elif e == "": | ||
return True | ||
else: | ||
return False | ||
return bool(e.isdigit() or not e.isdigit() and e == "") |
There was a problem hiding this comment.
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
if e.isdigit(): | ||
return True | ||
elif e == "": | ||
return True | ||
else: | ||
return False | ||
return bool(e.isdigit() or not e.isdigit() and e == "") |
There was a problem hiding this comment.
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
if e.isdigit(): | ||
return True | ||
elif e == "": | ||
return True | ||
else: | ||
return False | ||
return bool(e.isdigit() or not e.isdigit() and e == "") |
There was a problem hiding this comment.
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
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: