Source code for geetools.types

"""A set of custom mixin types to use in the package when dealing with Python/GEE functions."""
from __future__ import annotations

import os
from pathlib import Path
from typing import Union

import ee

[docs] ee_str = Union[str, ee.String]
[docs] ee_int = Union[int, ee.Number]
[docs] ee_float = Union[float, ee.Number]
[docs] ee_number = Union[float, int, ee.Number]
[docs] ee_list = Union[list, ee.List]
[docs] ee_dict = Union[dict, ee.Dictionary]
[docs] ee_geomlike = Union[ee.Geometry, ee.Feature, ee.FeatureCollection]
[docs] pathlike = Union[os.PathLike, Path]
[docs] number = Union[float, int]