File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1143,7 +1143,7 @@ def _get_color_and_size(value):
1143
1143
# Labels are not numerical so modifying label_values is not
1144
1144
# possible, instead filter the array with nicely distributed
1145
1145
# indexes:
1146
- if type (num ) == int : # noqa: E721
1146
+ if type (num ) is int :
1147
1147
loc = mpl .ticker .LinearLocator (num )
1148
1148
else :
1149
1149
raise ValueError ("`num` only supports integers for non-numeric labels." )
Original file line number Diff line number Diff line change @@ -5635,7 +5635,7 @@ def test_duck_array_ops(self):
5635
5635
5636
5636
assert_units_equal (expected , actual )
5637
5637
# Don't use isinstance b/c we don't want to allow subclasses through
5638
- assert type (expected .data ) == type (actual .data ) # noqa: E721
5638
+ assert type (expected .data ) is type (actual .data )
5639
5639
5640
5640
5641
5641
@requires_matplotlib
You can’t perform that action at this time.
0 commit comments