We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13599a commit cdf0ee0Copy full SHA for cdf0ee0
tests/fast/test_all_types.py
@@ -29,7 +29,7 @@ def replace_with_ndarray(obj):
29
def recursive_equality(o1, o2):
30
if type(o1) is not type(o2):
31
return False
32
- if type(o1) is not float and math.isnan(o1) and math.isnan(o2):
+ if type(o1) == float and math.isnan(o1) and math.isnan(o2): # noqa: E721
33
return True
34
if o1 is np.ma.masked and o2 is np.ma.masked:
35
0 commit comments