Skip to content

Commit

Permalink
STY: apply manual fixes for ruff 0.5 (rule E721)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jul 1, 2024
1 parent 9fd7c1e commit 3327fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yt/frontends/amrex/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ def _guess_pcast(vals):
pcast = float
else:
pcast = int
if pcast == bool:
if pcast is bool:
vals = [value == "T" for value in vals.split()]
else:
vals = [pcast(value) for value in vals.split()]
Expand Down
2 changes: 1 addition & 1 deletion yt/utilities/configuration_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def value(self):

@value.setter
def value(self, new_value):
if type(self.value) == type(new_value):
if type(self.value) is type(new_value):
self._value = new_value
else:
tree = self.get_tree()
Expand Down

0 comments on commit 3327fee

Please sign in to comment.