Skip to content

Commit

Permalink
model.py: Rename import of image to ee_image to avoid confusion with …
Browse files Browse the repository at this point in the history
…an arg named `image`.

PiperOrigin-RevId: 659976898
  • Loading branch information
schwehr authored and Google Earth Engine Authors committed Aug 6, 2024
1 parent b9b6dc7 commit afb7b1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/ee/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ee import ee_number
from ee import ee_string
from ee import featurecollection
from ee import image
from ee import image as ee_image
from ee import projection

_DictionaryType = Union[
Expand All @@ -23,7 +23,7 @@
_FeatureCollectionType = Union[
Any, featurecollection.FeatureCollection, computedobject.ComputedObject
]
_ImageType = Union[Any, image.Image, computedobject.ComputedObject]
_ImageType = Union[Any, ee_image.Image, computedobject.ComputedObject]
_IntegerType = Union[int, 'ee_number.Number', computedobject.ComputedObject]
_ListType = Union[
List[Any], Tuple[Any, Any], ee_list.List, computedobject.ComputedObject
Expand Down Expand Up @@ -281,7 +281,7 @@ def fromVertexAi(
payloadFormat,
)

def predictImage(self, image: _ImageType) -> image.Image:
def predictImage(self, image: _ImageType) -> ee_image.Image:
"""Returns an image with predictions from pixel tiles of an image.
The predictions are merged as bands with the input image.
Expand Down

0 comments on commit afb7b1c

Please sign in to comment.