From 42aa9cde9962766a8dcd077eb5f37997bdd71d7a Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Fri, 21 Jul 2023 14:15:00 +0100 Subject: [PATCH] build credentials mapping : rename func --- openbb_sdk/sdk/core/openbb_core/app/provider_interface.py | 4 ++-- openbb_sdk/sdk/provider/openbb_provider/map.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 37acf017957..3dee94d0bc8 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py +++ b/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py @@ -2,7 +2,7 @@ from dataclasses import dataclass, make_dataclass from typing import Any, Dict, List, Literal, Optional, Tuple, Union from fastapi import Query -from openbb_provider.map import build_model_mapping, get_credentials_mapping +from openbb_provider.map import build_model_mapping, build_credentials_mapping from openbb_provider.registry import ( ProviderRegistry, build_provider_registry, @@ -145,7 +145,7 @@ class ProviderInterface: def __get_credentials() -> Dict[str, Tuple[Optional[str], None]]: """Get credentials.""" credentials: Dict[str, Tuple[Optional[str], None]] = {} - credentials_mapping = get_credentials_mapping() + credentials_mapping = build_credentials_mapping() for provider_credentials in credentials_mapping.values(): for credential in provider_credentials: credentials[credential] = (Optional[str], None) diff --git a/openbb_sdk/sdk/provider/openbb_provider/map.py b/openbb_sdk/sdk/provider/openbb_provider/map.py index 9658ad584e3..1a473b41d07 100644 --- a/openbb_sdk/sdk/provider/openbb_provider/map.py +++ b/openbb_sdk/sdk/provider/openbb_provider/map.py @@ -274,7 +274,7 @@ def build_docstring_mapping() -> Dict: return mapping -def get_credentials_mapping() -> Dict: +def build_credentials_mapping() -> Dict: """Build a mapping of the provider registry credentials. Returns @@ -296,7 +296,7 @@ def get_credentials_mapping() -> Dict: return mapping -get_credentials_mapping() +build_credentials_mapping() def build_model_mapping() -> Dict: