From 931c8b40fcf70f9ccd9be68c658873c950246f44 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Thu, 23 Nov 2023 15:27:23 +0000 Subject: [PATCH] add comment async/sync --- .../providers/fmp/openbb_fmp/models/equity_historical.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py b/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py index ad07f1f7dc2..12a31ce9c79 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py @@ -79,8 +79,11 @@ class FMPEquityHistoricalFetcher( return FMPEquityHistoricalQueryParams(**transformed_params) + # TODO: Fix fetcher to allow async/sync methods or turn everything async + # @overloading the method does not work, it breaks the type hinting for the + # synchronous method implemented in other providers @staticmethod - async def extract_data( + async def extract_data( # pylint: disable=invalid-overridden-method query: FMPEquityHistoricalQueryParams, credentials: Optional[Dict[str, str]], **kwargs: Any,