From 6ec2da8d3ae948ac4d7726afdff64e37039610b5 Mon Sep 17 00:00:00 2001 From: Moritz Schott Date: Fri, 17 Nov 2023 16:51:57 +0100 Subject: [PATCH] doc: add typing --- ohsome/clients.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/ohsome/clients.py b/ohsome/clients.py index 8a9810d..e0215a4 100644 --- a/ohsome/clients.py +++ b/ohsome/clients.py @@ -262,18 +262,20 @@ def post( bpolys: Optional[ Union[gpd.GeoDataFrame, shapely.Polygon, shapely.MultiPolygon, str] ] = None, - time=None, - filter=None, - filter2=None, - format=None, - showMetadata=None, - timeout=None, - groupByKey=None, - groupByKeys=None, - groupByValues=None, - properties=None, - clipGeometry=None, - endpoint=None, + time: Optional[ + Union[str, dt.datetime, dt.date, list, pd.DatetimeIndex, pd.Series] + ] = None, + filter: Optional[str] = None, + filter2: Optional[str] = None, + format: Optional[str] = None, + showMetadata: Optional[bool] = None, + timeout: Optional[int] = None, + groupByKey: Optional[str] = None, + groupByKeys: Optional[Union[str, List[str]]] = None, + groupByValues: Optional[Union[str, List[str]]] = None, + properties: Optional[Union[str, List[str]]] = None, + clipGeometry: Optional[bool] = None, + endpoint: Optional[str] = None, ): """ Sends request to ohsome API