Skip to content

Commit

Permalink
docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Feb 19, 2024
1 parent 5388042 commit 9c61377
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
9 changes: 8 additions & 1 deletion eodag/plugins/apis/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ def discover_product_types(self) -> Optional[Dict[str, Any]]:
def discover_queryables(
self, **kwargs: Any
) -> Optional[Dict[str, Annotated[Any, FieldInfo]]]:
"""Fetch queryables list from provider using `discover_queryables` conf"""
"""Fetch queryables list from provider using `discover_queryables` conf
:param kwargs: additional filters for queryables (`productType` and other search
arguments)
:type kwargs: Any
:returns: fetched queryable parameters dict
:rtype: Optional[Dict[str, Annotated[Any, FieldInfo]]]
"""
return None

def download(
Expand Down
4 changes: 2 additions & 2 deletions eodag/plugins/apis/cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@ def discover_queryables(
) -> Optional[Dict[str, Annotated[Any, FieldInfo]]]:
"""Fetch queryables list from provider using `discover_queryables` conf
:param kwargs: additional filters for queryables (`productType` or other search
:param kwargs: additional filters for queryables (`productType` and other search
arguments)
:type kwargs: Any
:returns: fetched queryable parameters dict
:rtype: Optional[Dict[str, Tuple[Annotated[Any, FieldInfo], Any]]]
:rtype: Optional[Dict[str, Annotated[Any, FieldInfo]]]
"""
constraints_file_url = getattr(self.config, "constraints_file_url", "")
if not constraints_file_url:
Expand Down
6 changes: 4 additions & 2 deletions eodag/plugins/search/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ def discover_queryables(
self, **kwargs: Any
) -> Optional[Dict[str, Annotated[Any, FieldInfo]]]:
"""Fetch queryables list from provider using `discover_queryables` conf
:param kwargs: additional filters for queryables (`productType` or other search arguments)
:param kwargs: additional filters for queryables (`productType` and other search
arguments)
:type kwargs: Any
:returns: fetched queryable parameters dict
:rtype: Optional[Dict[str, Tuple[Annotated[Any, FieldInfo], Any]]]
:rtype: Optional[Dict[str, Annotated[Any, FieldInfo]]]
"""
return None

Expand Down
4 changes: 2 additions & 2 deletions eodag/plugins/search/qssearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,11 +1286,11 @@ def discover_queryables(
) -> Optional[Dict[str, Annotated[Any, FieldInfo]]]:
"""Fetch queryables list from provider using `discover_queryables` conf
:param kwargs: additional filters for queryables (`productType` or other search
:param kwargs: additional filters for queryables (`productType` and other search
arguments)
:type kwargs: Any
:returns: fetched queryable parameters dict
:rtype: Optional[Dict[str, Tuple[Annotated[Any, FieldInfo], Any]]]
:rtype: Optional[Dict[str, Annotated[Any, FieldInfo]]]
"""
product_type = kwargs.get("productType", None)
provider_product_type = (
Expand Down

0 comments on commit 9c61377

Please sign in to comment.