From 5b1a28752d4beb02868cf96ddf59e3e1435f5c46 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Wed, 5 Jul 2023 14:45:11 +0100 Subject: [PATCH] lint --- .../economy/economy_router.py | 4 +- .../fixedincome/fixedincome_router.py | 2 +- .../builtin_extensions/stocks/dd/dd_router.py | 2 +- .../builtin_extensions/stocks/fa/fa_router.py | 38 +++++++++---------- 4 files changed, 24 insertions(+), 22 deletions(-) diff --git a/openbb_sdk/builtin_extensions/economy/economy_router.py b/openbb_sdk/builtin_extensions/economy/economy_router.py index 385cf69f60a..fcc5edae821 100644 --- a/openbb_sdk/builtin_extensions/economy/economy_router.py +++ b/openbb_sdk/builtin_extensions/economy/economy_router.py @@ -70,7 +70,9 @@ def cpi( @router.command -def cpi_options(cc: CommandContext, provider_choices: ProviderChoices) -> CommandOutput[Empty]: +def cpi_options( + cc: CommandContext, provider_choices: ProviderChoices +) -> CommandOutput[Empty]: """Get the options for v3 cpi(options=True)""" return CommandOutput(results=Empty()) diff --git a/openbb_sdk/builtin_extensions/fixedincome/fixedincome_router.py b/openbb_sdk/builtin_extensions/fixedincome/fixedincome_router.py index 5687f29a4e1..4145825c96f 100644 --- a/openbb_sdk/builtin_extensions/fixedincome/fixedincome_router.py +++ b/openbb_sdk/builtin_extensions/fixedincome/fixedincome_router.py @@ -19,7 +19,7 @@ def treasury( ) -> CommandOutput[BaseModel]: """Get treasury rates.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) diff --git a/openbb_sdk/builtin_extensions/stocks/dd/dd_router.py b/openbb_sdk/builtin_extensions/stocks/dd/dd_router.py index b3760908248..fdc61f57540 100644 --- a/openbb_sdk/builtin_extensions/stocks/dd/dd_router.py +++ b/openbb_sdk/builtin_extensions/stocks/dd/dd_router.py @@ -19,5 +19,5 @@ def sec( ) -> CommandOutput[BaseModel]: """SEC Filings.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) diff --git a/openbb_sdk/builtin_extensions/stocks/fa/fa_router.py b/openbb_sdk/builtin_extensions/stocks/fa/fa_router.py index 780a3752d9d..772db4b79a1 100644 --- a/openbb_sdk/builtin_extensions/stocks/fa/fa_router.py +++ b/openbb_sdk/builtin_extensions/stocks/fa/fa_router.py @@ -20,7 +20,7 @@ def balance( ) -> CommandOutput[BaseModel]: """Balance Sheet.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -32,7 +32,7 @@ def cash( ) -> CommandOutput[BaseModel]: """Cash Flow Statement.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -44,7 +44,7 @@ def comp( ) -> CommandOutput[BaseModel]: """Executive Compensation.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -56,7 +56,7 @@ def earning( ) -> CommandOutput[BaseModel]: """Earnings Calendar.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -74,7 +74,7 @@ def est( ) -> CommandOutput[BaseModel]: """Analyst Estimates.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -86,7 +86,7 @@ def income( ) -> CommandOutput[BaseModel]: """Income Statement.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -98,7 +98,7 @@ def ins( ) -> CommandOutput[BaseModel]: """Stock Insider Trading.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -110,7 +110,7 @@ def metrics( ) -> CommandOutput[BaseModel]: """Key Metrics.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -122,7 +122,7 @@ def mgmt( ) -> CommandOutput[BaseModel]: """Key Executives.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -134,7 +134,7 @@ def overview( ) -> CommandOutput[BaseModel]: """Company Overview.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -146,7 +146,7 @@ def own( ) -> CommandOutput[BaseModel]: """Institutional Ownership.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -158,7 +158,7 @@ def pta( ) -> CommandOutput[BaseModel]: """Price Target.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -170,7 +170,7 @@ def pt( ) -> CommandOutput[BaseModel]: """Price Target Consensus.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -182,7 +182,7 @@ def revgeo( ) -> CommandOutput[BaseModel]: """Revenue Geographic.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -194,7 +194,7 @@ def revseg( ) -> CommandOutput[BaseModel]: """Revenue Business Line.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -206,7 +206,7 @@ def shrs( ) -> CommandOutput[BaseModel]: """Share Statistics.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -223,7 +223,7 @@ def transcript( ) -> CommandOutput[BaseModel]: """Earnings Call Transcript.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -235,7 +235,7 @@ def split( ) -> CommandOutput[BaseModel]: """Historical Stock Splits.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider ) @@ -247,7 +247,7 @@ def cal( ) -> CommandOutput[BaseModel]: """Historical Dividends.""" return CommandOutput( - results=Query(**locals()).execute(), provider=provider.provider + results=Query(**locals()).execute(), provider=provider_choices.provider )