Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson committed Oct 19, 2023
1 parent f8bd85d commit 23e8245
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openff/bespokefit/executor/services/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __gt__(self, other):

def __eq__(self, other):
return (
type(self) == type(other)
type(self) is type(other)
and self.id.__eq__(other.id)
and self.self.__eq__(other.self)
)
Expand Down
2 changes: 1 addition & 1 deletion openff/bespokefit/schema/smirnoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def from_smirnoff(cls, parameter: ParameterType):
"""Creates a version of this class from a SMIRNOFF parameter"""

def __eq__(self, other):
return type(self) == type(other) and self.__hash__() == other.__hash__()
return type(self) is type(other) and self.__hash__() == other.__hash__()

def __ne__(self, other):
assert not self.__eq__(other)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_local_to_qc_records(result_fixture, request):
LocalQCData(qc_records=[qc_result])
)

assert type(qc_record) == type(qc_result)
assert type(qc_record) is type(qc_result)

assert molecule.to_smiles() == expected_molecule.to_smiles()
assert molecule.n_conformers == expected_molecule.n_conformers
Expand Down

0 comments on commit 23e8245

Please sign in to comment.