mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 15:32:04 +00:00
Linting
This commit is contained in:
@@ -96,7 +96,7 @@ class PolygonCryptoEODFetcher(
|
||||
if isinstance(data, list):
|
||||
raise ValueError("Expected a dict, got a list")
|
||||
|
||||
if "results" not in data.keys() or len(data["results"]) == 0:
|
||||
if "results" not in data or len(data["results"]) == 0:
|
||||
raise RuntimeError("No results found. Please change your query parameters.")
|
||||
|
||||
data = data["results"]
|
||||
|
||||
@@ -95,7 +95,7 @@ class PolygonForexEODFetcher(
|
||||
if isinstance(data, list):
|
||||
raise ValueError("Expected a dict, got a list")
|
||||
|
||||
if "results" not in data.keys() or len(data["results"]) == 0:
|
||||
if "results" not in data or len(data["results"]) == 0:
|
||||
raise RuntimeError("No results found. Please change your query parameters.")
|
||||
|
||||
data = data["results"]
|
||||
|
||||
@@ -98,7 +98,7 @@ class PolygonMajorIndicesEODFetcher(
|
||||
if isinstance(data, list):
|
||||
raise ValueError("Expected a dict, got a list")
|
||||
|
||||
if "results" not in data.keys() or len(data["results"]) == 0:
|
||||
if "results" not in data or len(data["results"]) == 0:
|
||||
raise RuntimeError("No results found. Please change your query parameters.")
|
||||
|
||||
data = data["results"]
|
||||
|
||||
@@ -95,7 +95,7 @@ class PolygonStockEODFetcher(
|
||||
if isinstance(data, list):
|
||||
raise ValueError("Expected a dict, got a list")
|
||||
|
||||
if "results" not in data.keys() or len(data["results"]) == 0:
|
||||
if "results" not in data or len(data["results"]) == 0:
|
||||
raise RuntimeError("No results found. Please change your query parameters.")
|
||||
|
||||
data = data["results"]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
|
||||
|
||||
|
||||
|
||||
from openbb_core.app.static.container import Container
|
||||
|
||||
|
||||
|
||||
@@ -22,9 +22,10 @@ from typing import (
|
||||
)
|
||||
|
||||
import pandas as pd
|
||||
from starlette.routing import BaseRoute
|
||||
|
||||
from openbb_core.app.provider_interface import get_provider_interface
|
||||
from openbb_core.app.router import RouterLoader
|
||||
from starlette.routing import BaseRoute
|
||||
|
||||
|
||||
class PackageBuilder:
|
||||
|
||||
Reference in New Issue
Block a user