diff --git a/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py b/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py index a2e69b8c07e..8a6b99ed6dc 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py +++ b/openbb_sdk/sdk/core/openbb_core/app/model/command_output.py @@ -78,9 +78,9 @@ class CommandOutput(GenericModel, Generic[T], Tagged): df = pd.concat(dict_of_df, axis=1) if concat else dict_of_df else: - df = basemodel_to_df(res, "date") + df = basemodel_to_df(res, "date") # type: ignore else: - df = basemodel_to_df(res, "date") + df = basemodel_to_df(res, "date") # type: ignore except Exception as e: raise OpenBBError("Failed to convert results to DataFrame.") from e @@ -95,7 +95,7 @@ class CommandOutput(GenericModel, Generic[T], Tagged): Dict[str, List] Dictionary of lists. """ - df = self.to_dataframe().reset_index() + df = self.to_dataframe().reset_index() # type: ignore results = {} for field in df.columns: results[field] = df[field].tolist() diff --git a/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py b/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py index 36afdc6b548..e3a438a9c2f 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py +++ b/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py @@ -184,7 +184,7 @@ class ProviderInterface: if field.required: if force_optional: - type_ = Optional[type_] + type_ = Optional[type_] # type: ignore default = None else: default = ... diff --git a/openbb_sdk/sdk/provider/openbb_provider/query_executor.py b/openbb_sdk/sdk/provider/openbb_provider/query_executor.py index 19c232f088e..6b1ae29c423 100644 --- a/openbb_sdk/sdk/provider/openbb_provider/query_executor.py +++ b/openbb_sdk/sdk/provider/openbb_provider/query_executor.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, Optional +from typing import Any, Dict, Optional, Type from openbb_provider.abstract.fetcher import Fetcher, GenericDataType from openbb_provider.abstract.provider import Provider @@ -25,7 +25,7 @@ class QueryExecutor: ) return self.registry.providers[name] - def get_fetcher(self, provider: Provider, model_name: str) -> Fetcher: + def get_fetcher(self, provider: Provider, model_name: str) -> Type[Fetcher]: """Get a fetcher from a provider.""" if model_name not in provider.fetcher_dict: raise ProviderError(