🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@lpsinger
Copy link
Contributor

The elif clauses in Marker.set_marker needed to be reordered because any Python object that has a __len__ method is an instance of collections.Sized.

Before this change, the new unit test test_marker_path() would fail with this exception:

TypeError: 'Path' object does not support indexing

The `elif` clauses in `Marker.set_marker` needed to be reordered
because any Python object that has a `__len__` method is an
instance of `collections.Sized`.
@phobson phobson merged commit 79fb398 into matplotlib:master Mar 2, 2018
@lpsinger lpsinger deleted the short-marker-path branch March 2, 2018 17:39
@QuLogic QuLogic added this to the v3.0 milestone Mar 2, 2018
@ImportanceOfBeingErnest
Copy link
Member

I think this fixes a bug and a regression to 1.x versions. Should be put in the 2.2 branch as well.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants