From 64ced155365dd62e0dd176188a9630f1e68edf89 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Sat, 29 Jul 2023 00:17:56 +0100 Subject: [PATCH] add abstractmethod decorator --- openbb_sdk/sdk/provider/openbb_provider/abstract/fetcher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbb_sdk/sdk/provider/openbb_provider/abstract/fetcher.py b/openbb_sdk/sdk/provider/openbb_provider/abstract/fetcher.py index 1ce2740d41e..ddb9f4d73bf 100644 --- a/openbb_sdk/sdk/provider/openbb_provider/abstract/fetcher.py +++ b/openbb_sdk/sdk/provider/openbb_provider/abstract/fetcher.py @@ -1,6 +1,7 @@ """Abstract class for the fetcher.""" +from abc import abstractmethod from typing import Any, Dict, Generic, List, Optional, TypeVar, Union from openbb_provider.abstract.data import Data, QueryParams @@ -53,24 +54,28 @@ class Fetcher( return data @property + @abstractmethod def query_params_type(self): """Get the type of the query.""" # pylint: disable=E1101 return self.__orig_bases__[0].__args__[0] @property + @abstractmethod def data_type(self): """Get the type of the data.""" # pylint: disable=E1101 return self.__orig_bases__[0].__args__[1] @property + @abstractmethod def provider_query_params_type(self): """Get the type of the provider query.""" # pylint: disable=E1101 return self.__orig_bases__[0].__args__[2] @property + @abstractmethod def provider_data_type(self): """Get the type of the provider data.""" # pylint: disable=E1101