-
Notifications
You must be signed in to change notification settings - Fork 99
Add RangeEditor support for format_func #1684
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
dd82eec
add a currently failing test
aaronayres35 cf42ce4
remove call to configure_traits
aaronayres35 d25a17f
make test pass on qt by using the string_value method on the factory
aaronayres35 fc9ae39
make same fix on wx
aaronayres35 3032065
redefine string_value method on RangeEditor to preserve behavior. We…
aaronayres35 017714b
add a test for use of format trait to ensure we aren't changing behavior
aaronayres35 7383f01
fix test and string_value method (missed one format_str)
aaronayres35 9ad59b8
add news fragment
aaronayres35 bb7a3c4
deprecate format trait and make it an alias for format_str
aaronayres35 f4fc4b0
add deprecation comment on wx
aaronayres35 a7304b0
add a test demonstrating behavior change
aaronayres35 cd26554
call string_value on the editor as this ends up calling the method on…
aaronayres35 68c42f1
Apply suggestions from code review
aaronayres35 d618dde
update news fragment
aaronayres35 2bf3fa5
add comment refering to new issue
aaronayres35 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add RangeEditor support for format_func (#1684) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
There is no mention of the
format_funckwarg to the method in the docstring here.Tangentially, the priority here seems a little wonky to me - shouldn't
format_funcpassed to the method take priority over theformat_func/formatset on the factory? I think it should becauseformat_funcis being explicitly passed when callingstring_value- andformat_func/formatmight have been set on the factory at any earlier point after instantiation.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.
I agree, this is quite strange and unexpected behavior...
I will open an issue pointing to the origin of this method (i.e.
EditorFactory.string_value)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.
I've opened #1695