apifunction.py: Cleanup comment with the assumption that everything is Python 3.

PiperOrigin-RevId: 811381454
This commit is contained in:
Kurt Schwehr 2025-09-25 09:29:37 -07:00 committed by Google Earth Engine Authors
parent c4f02f52d4
commit 6e1f70c7ef

View File

@ -60,7 +60,7 @@ class ApiFunction(function.Function):
return (isinstance(other, ApiFunction) and
self.getSignature() == other.getSignature())
# For Python 3, __hash__ is needed because __eq__ is defined.
# __hash__ is needed because __eq__ is defined.
# See https://docs.python.org/3/reference/datamodel.html#object.__hash__
def __hash__(self) -> int:
return hash(computedobject.ComputedObject.freeze(self.getSignature()))