From f1db8063ace7209797468721aa7be33fea7656ae Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Thu, 24 Aug 2023 15:46:04 +0100 Subject: [PATCH] pylint + regen fixedincome --- .../app/static/package/fixedincome.py | 18 +++++++++--------- .../openbb_core/app/static/package_builder.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package/fixedincome.py b/openbb_sdk/sdk/core/openbb_core/app/static/package/fixedincome.py index 4a815090349..151d89f4240 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package/fixedincome.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package/fixedincome.py @@ -3,7 +3,7 @@ import datetime from typing import List, Literal, Optional, Union -from pydantic import BaseModel, validate_arguments +from pydantic import validate_arguments from typing_extensions import Annotated from openbb_core.app.model.custom_parameter import OpenBBCustomParameter @@ -46,7 +46,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """ Ameribor (short for the American interbank offered rate) is a benchmark interest rate that reflects the true cost of short-term interbank borrowing. This rate is based on transactions in overnight unsecured loans conducted on the American Financial Exchange @@ -123,7 +123,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """ The euro short-term rate (€STR) reflects the wholesale euro unsecured overnight borrowing costs of banks located in the euro area. The €STR is published on each TARGET2 business day based on transactions conducted and settled on the previous TARGET2 business @@ -201,7 +201,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """ Get Effective Federal Funds Rate data. A bank rate is the interest rate a nation's central bank charges to its domestic banks to borrow money. The rates central banks charge are set to stabilize the economy. In the United States, the Federal Reserve System's @@ -278,7 +278,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """ Get Interest Rate on Reserve Balances data A bank rate is the interest rate a nation's central bank charges to its domestic banks to borrow money. The rates central banks charge are set to stabilize the economy. In the United States, the Federal Reserve @@ -338,7 +338,7 @@ class CLASS_fixedincome(Container): @validate_arguments def projections( self, chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """ Get Effective Federal Funds Rate data. A bank rate is the interest rate a nation's central bank charges to its domestic banks to borrow money. The rates central banks charge are set to stabilize the economy. In the United States, the Federal Reserve System's @@ -420,7 +420,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """Get United States yield curve. Parameters @@ -494,7 +494,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """ SONIA (Sterling Overnight Index Average) is an important interest rate benchmark. SONIA is based on actual transactions and reflects the average of the interest rates that banks pay to borrow sterling overnight from other financial institutions and other @@ -663,7 +663,7 @@ class CLASS_fixedincome(Container): chart: bool = False, provider: Optional[Literal["fred"]] = None, **kwargs - ) -> OBBject[BaseModel]: + ) -> OBBject[List]: """Get United States yield curve. Parameters diff --git a/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py b/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py index 8904d09dd1a..417c34a3328 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py +++ b/openbb_sdk/sdk/core/openbb_core/app/static/package_builder.py @@ -435,7 +435,7 @@ class MethodDefinition: @staticmethod def is_annotated_dc(annotation) -> bool: """Check if the annotation is an annotated dataclass.""" - return type(annotation) is _AnnotatedAlias and hasattr( + return isinstance(annotation, _AnnotatedAlias) and hasattr( annotation.__args__[0], "__dataclass_fields__" )