uranusjr commented on a change in pull request #19377:
URL: https://github.com/apache/airflow/pull/19377#discussion_r753457213
##########
File path: airflow/providers/facebook/ads/hooks/ads.py
##########
@@ -105,24 +110,79 @@ def bulk_facebook_report(
params: Dict[str, Any],
fields: List[str],
sleep_time: int = 5,
- ) -> List[AdsInsights]:
+ ) -> Union[List[AdsInsights], Dict[str, List[AdsInsights]]]:
"""
- Pulls data from the Facebook Ads API
+ Pulls data from the Facebook Ads API regarding Account ID with
matching return type
+
+ .. seealso::
+ If the type of Account ID is a List account_id -> list
Review comment:
This `->` syntax is a bit difficult to understand to me. It’s probably
better to write this is prose, something like
```rst
The return type and value depends on the ``account_id`` configuration. If the
configuration is a str representing a single Account ID, the return value is
the
list of reports for that ID. If the configuration is a list of str
representing
multiple Account IDs, the return value is a dict of Account IDs and their
respective list of reports.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]