Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Don't warn in Collections.contains if picker is not numlike. #6491
Conversation
mdboom
added the
needs_review
label
May 28, 2016
|
Bump, this should be fairly non-controversial? I could add an explicit test that |
|
First, the PR needs to be rebased. Second, the comment for the original warning gives me pause. It is saying that it shouldn't happen unless it is being called in a non-normal manner. So... is the comment still correct and something else is wrong, or is the comment outdated? |
tacaswell
added this to the
2.1 (next point release)
milestone
Jul 7, 2016
|
I agree the behavior is the same, that comment makes me a little nervous though. I suspect that it is technical debt from an old check that got over run by new functionality. I looked at this a while ago and abandoned my changes, but I no longer remember why (could have been I found a problem or could have been I switched to something else and just never came back Needs a rebase, I am +0.5 on merging. |
|
It as also distressing how often @WeatherGod and I leave very similar comments with in minutes of each other. |
|
I guess the check and the comment must date back from before it was allowed to pass an arbitrary callable as the |
|
Rebased; bumping. |
|
Test failure is pytest-only and is related to stixsans font. |
anntzer commentedMay 28, 2016
Otherwise, a warning is raised in the simple example:
(Click anywhere in the figure to trigger the warning.)
The use of
is_numlikematches the implementation ofLine2D.contains.Initially noted while using mpldatacursor.