-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor title decoration #373
Refactor title decoration #373
Conversation
With this, the _testing_path argument can be removed from saved settings code. The alternative to going this route was to add _testing_path to another class, the ReviewSettings widget.
This will make it easy to reuse for decorating accordion or tab titles. The original version could only decorate an HTML widget that it had created.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #373 +/- ##
==========================================
+ Coverage 77.67% 77.69% +0.02%
==========================================
Files 27 27
Lines 3628 3632 +4
==========================================
+ Hits 2818 2822 +4
Misses 810 810 ☔ View full report in Codecov by Sentry. |
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.
Looks pretty straightforward except for the code supporting Python 3.10 (which is fine to keep).
@@ -1,6 +1,18 @@ | |||
# Some settings require custom widgets to be displayed in the GUI. These are defined in | |||
# this module. | |||
|
|||
# This workaround is for Python < 3.11. It is not needed in Python 3.11 and later. |
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.
Couldn't we just require 3.11? I think we opted to require 3.10 last summer, but at this point... In any case, if you are wedded to supporting 3.10, keep this.
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.
We could require 3.11. I wasn't aware until I opened this PR that StrEnum
was new in 3.11.
This will make it easy to reuse for decorating accordion or tab titles. The original version could only decorate an HTML widget that it had created.
#372 should be merged before this one is.