mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 16:02:04 +00:00
ruff
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
from pydantic import create_model, Extra
|
||||
|
||||
from pydantic import create_model
|
||||
|
||||
from openbb_core.app.provider_interface import get_provider_interface
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ import warnings
|
||||
from dataclasses import asdict
|
||||
from typing import Any, Dict
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from openbb_core.app.model.abstract.warning import OpenBBWarning
|
||||
from openbb_core.app.model.command_context import CommandContext
|
||||
from openbb_core.app.provider_interface import (
|
||||
|
||||
@@ -20,38 +20,10 @@ class CLASS_news(Container):
|
||||
self,
|
||||
page: pydantic.types.NonNegativeInt = 0,
|
||||
chart: bool = False,
|
||||
provider: Optional[Literal["benzinga", "fmp"]] = None,
|
||||
provider: Optional[Literal["benzinga"]] = None,
|
||||
**kwargs
|
||||
) -> CommandOutput[typing.List]:
|
||||
"""Global News.
|
||||
|
||||
Available providers: benzinga, fmp
|
||||
|
||||
Standard
|
||||
========
|
||||
|
||||
|
||||
benzinga
|
||||
========
|
||||
|
||||
Source: https://docs.benzinga.io/benzinga/newsfeed-v2.html
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Documentation not available.
|
||||
|
||||
|
||||
fmp
|
||||
===
|
||||
|
||||
Source: https://site.financialmodelingprep.com/developer/docs/general-news-api/
|
||||
|
||||
|
||||
Returns
|
||||
-------
|
||||
Documentation not available.
|
||||
"""
|
||||
"""Global News."""
|
||||
inputs = filter_inputs(
|
||||
provider_choices={
|
||||
"provider": provider,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Abstract class for providers."""
|
||||
|
||||
from typing import Any, Dict, List, Optional
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
from openbb_provider.abstract.fetcher import Fetcher
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from openbb_provider.abstract.provider import Provider
|
||||
import pkg_resources
|
||||
|
||||
from openbb_provider.abstract.provider import Provider
|
||||
|
||||
|
||||
class Registry:
|
||||
"""Class to maintain registry of providers"""
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Dict, List, Literal, Optional
|
||||
from openbb_provider.abstract.fetcher import Fetcher
|
||||
|
||||
from openbb_provider.abstract.fetcher import Fetcher
|
||||
from openbb_provider.registry import Registry, RegistryLoader
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user