Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring numedit: PEP8 arguments, allow negative, type casts #636

Merged
merged 1 commit into from Sep 26, 2023

Conversation

penguinolog
Copy link
Collaborator

  • USE PEP8 compliant arguments and deprecate old one
  • Allow cast IntEdit to int and FloatEdit to float
  • Allow negative values without changing default behavior

Fix: #603
Fix: #432
Partial: #502

Checklist
  • I've ensured that similar functionality has not already been implemented
  • I've ensured that similar functionality has not earlier been proposed and declined
  • I've branched off the master or python-dual-support branch
  • I've merged fresh upstream into my branch recently
  • I've ran tox successfully in local environment
  • I've included docstrings and/or documentation and/or examples for my code (if this is a new feature)

@coveralls
Copy link

coveralls commented Sep 26, 2023

Pull Request Test Coverage Report for Build 6310809682

  • 38 of 41 (92.68%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 74.347%

Changes Missing Coverage Covered Lines Changed/Added Lines %
urwid/numedit.py 36 39 92.31%
Totals Coverage Status
Change from base Build 6309279069: 0.04%
Covered Lines: 7528
Relevant Lines: 10255

💛 - Coveralls

* USE PEP8 compliant arguments and deprecate old one
* Allow cast `IntEdit` to int and `FloatEdit` to float
* Allow negative values without changing default behavior

Fix: urwid#603
Fix: urwid#432
Partial: urwid#502
@penguinolog penguinolog merged commit 5c61818 into urwid:master Sep 26, 2023
23 checks passed
@penguinolog penguinolog deleted the numedit branch September 26, 2023 09:50
@penguinolog
Copy link
Collaborator Author

penguinolog commented Sep 26, 2023 via email

@JC3
Copy link

JC3 commented Sep 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NumEdit doesn't allow negative numbers... Negative number is not allowed in urwid.IntEdit
3 participants