Skip to content

Commit

Permalink
added overrides to fix rhino warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Nov 14, 2024
1 parent 4d0292e commit 0c08d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/PythonTypes/PyFloat.IComparable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ public int CompareTo(PyFloat? other)
}

public bool Equals(PyFloat? other) => base.Equals(other);

public override int GetHashCode() => base.GetHashCode();
}
2 changes: 2 additions & 0 deletions src/runtime/PythonTypes/PyInt.IComparable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,6 @@ public int CompareTo(PyInt? other)
}

public bool Equals(PyInt? other) => base.Equals(other);

public override int GetHashCode() => base.GetHashCode();
}

0 comments on commit 0c08d09

Please sign in to comment.