Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8482fc2

Browse files
tacaswellQuLogic
authored andcommitted
MNT: remove check that exists only for removed deprecation
1 parent ca48799 commit 8482fc2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/matplotlib/category.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ def convert(value, unit, axis):
5353
StrCategoryConverter._validate_unit(unit)
5454
# dtype = object preserves numerical pass throughs
5555
values = np.atleast_1d(np.array(value, dtype=object))
56-
# pass through sequence of non binary numbers
57-
with _api.suppress_matplotlib_deprecation_warning():
58-
is_numlike = all(units.ConversionInterface.is_numlike(v)
59-
and not isinstance(v, (str, bytes))
60-
for v in values)
6156
# force an update so it also does type checking
6257
unit.update(values)
6358
return np.vectorize(unit._mapping.__getitem__, otypes=[float])(values)

0 commit comments

Comments
 (0)