mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 22:11:55 +00:00
mypy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user