Skip to content

Commit

Permalink
image.py: Add native ee types to type aliases for ImageCollection, Im…
Browse files Browse the repository at this point in the history
…age, and List

PiperOrigin-RevId: 659543806
  • Loading branch information
schwehr authored and Google Earth Engine Authors committed Aug 5, 2024
1 parent 41be2f8 commit 0449c55
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions python/ee/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from ee import featurecollection
from ee import function
from ee import geometry
from ee import imagecollection
from ee import kernel
from ee import projection
from ee import reducer
Expand Down Expand Up @@ -62,11 +63,15 @@
Any, featurecollection.FeatureCollection, computedobject.ComputedObject
]
_GeometryType = Union[Any, computedobject.ComputedObject]
_ImageCollectionType = Union[Any, computedobject.ComputedObject]
_ImageType = Union[Any, computedobject.ComputedObject]
_ImageCollectionType = Union[
Any, imagecollection.ImageCollection, computedobject.ComputedObject
]
_ImageType = Union[Any, 'Image', computedobject.ComputedObject]
_IntegerType = Union[int, 'ee_number.Number', computedobject.ComputedObject]
_KernelType = Union[kernel.Kernel, computedobject.ComputedObject]
_ListType = Union[List[Any], Tuple[Any, Any], computedobject.ComputedObject]
_ListType = Union[
List[Any], Tuple[Any, Any], 'ee_list.List', computedobject.ComputedObject
]
_NumberType = Union[float, 'ee_number.Number', computedobject.ComputedObject]
_ProjectionType = Union[
str,
Expand Down

0 comments on commit 0449c55

Please sign in to comment.