Skip to content

Commit

Permalink
Docstring fix - if only my eyes were not tired!
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues authored Sep 6, 2024
1 parent e7c3837 commit 53d63ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/particle/particle/particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,14 +626,14 @@ def __lt__(self, other: Particle | int) -> bool:
return int(self.pdgid) < other

def __eq__(self, other: object) -> bool:
"""
Compare with another Particle instance based on PDG IDs.
"""
Compare with another Particle instance based on PDG IDs.
Note
----
Ensure the comparison also works for the special cases of the proton and the neutron,
which have two PDG ID representations as particles or nuclei.
"""
Note
----
Ensure the comparison also works for the special cases of the proton and the neutron,
which have two PDG ID representations as particles or nuclei.
"""
if isinstance(other, Particle):
other = other.pdgid

Expand Down

0 comments on commit 53d63ae

Please sign in to comment.