Skip to content

Commit 576702a

Browse files
committed
Fix typehint for DataCube.apply_dimension and .apply_neighborhood
1 parent 1373695 commit 576702a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openeo/rest/datacube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def get_parameter_names(process: typing.Callable) -> List[str]:
845845
@openeo_process
846846
def apply_dimension(
847847
self, code: str = None, runtime=None,
848-
process: [str, PGNode, typing.Callable] = None,
848+
process: Union[str, PGNode, typing.Callable] = None,
849849
version="latest",
850850
# TODO: dimension has no default (per spec)?
851851
dimension="t",
@@ -1053,7 +1053,7 @@ def reduce_temporal_udf(self, code: str, runtime="Python", version="latest"):
10531053
@openeo_process
10541054
def apply_neighborhood(
10551055
self,
1056-
process: [str, PGNode, typing.Callable],
1056+
process: Union[str, PGNode, typing.Callable],
10571057
size: List[Dict],
10581058
overlap: List[dict] = None,
10591059
context: Optional[dict] = None,

0 commit comments

Comments
 (0)