Skip to content

Commit

Permalink
STY: E721 - Do not compare types, use isinstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Aug 18, 2023
1 parent c1f8cf4 commit b61892e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/georeference/test_projection.py
Expand Up @@ -47,7 +47,7 @@ def test_get_crs():
"false_northing": 0.0,
}
for key, value in crs.items():
if type(value) == float:
if isinstance(value, float):
assert proj_crs_cf[key] == pytest.approx(value)
else:
assert proj_crs_cf[key] == value
Expand Down Expand Up @@ -78,7 +78,7 @@ def test_write_crs():
"false_northing": 0.0,
}
for key, value in crs.items():
if type(value) == float:
if isinstance(value, float):
assert ds.spatial_ref.attrs[key] == pytest.approx(value)
else:
assert ds.spatial_ref.attrs[key] == value

0 comments on commit b61892e

Please sign in to comment.