This commit is contained in:
Diogo Sousa
2023-07-17 11:59:46 +01:00
parent 1fcf41557f
commit f897c8520a

View File

@@ -1,9 +1,9 @@
from dataclasses import dataclass, make_dataclass
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
from fastapi import Query
from openbb_provider.map import build_provider_mapping
from openbb_provider.registry import build_provider_registry
from openbb_provider.registry import build_provider_registry, ProviderRegistry
from pydantic import BaseConfig, BaseModel, Extra, Field, create_model
@@ -113,7 +113,7 @@ class ProviderInterface:
def models(self) -> List[str]:
return list(self.__map.keys())
def create_registry(self) -> Callable:
def create_registry(self) -> ProviderRegistry:
return build_provider_registry()
@staticmethod