fixed type hints

This commit is contained in:
Daniil Fajnberg 2021-11-28 17:10:00 +01:00
parent e522897991
commit 9186d8734f
1 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,7 @@ async def _get_financial_statement(statement: str, ticker_symbol: str, quarterly
async def get_balance_sheet(*ticker_symbols: str, quarterly: bool = False,
session: ClientSession = None) -> ResultDict:
session: ClientSession = None) -> Union[ResultDict, Dict[str, ResultDict]]:
"""
Returns data from the balance sheet of the specified company.
"""
@ -104,7 +104,7 @@ async def get_balance_sheet(*ticker_symbols: str, quarterly: bool = False,
async def get_income_statement(*ticker_symbols: str, quarterly: bool = False,
session: ClientSession = None) -> ResultDict:
session: ClientSession = None) -> Union[ResultDict, Dict[str, ResultDict]]:
"""
Returns data from the income statement of the specified company.
"""
@ -117,7 +117,7 @@ async def get_income_statement(*ticker_symbols: str, quarterly: bool = False,
async def get_cash_flow_statement(*ticker_symbols: str, quarterly: bool = False,
session: ClientSession = None) -> ResultDict:
session: ClientSession = None) -> Union[ResultDict, Dict[str, ResultDict]]:
"""
Returns data from the cash flow statement of the specified company.
"""
@ -130,7 +130,8 @@ async def get_cash_flow_statement(*ticker_symbols: str, quarterly: bool = False,
async def get_company_financials(*ticker_symbols: str, quarterly: bool = False,
session: ClientSession = None) -> Dict[str, ResultDict]:
session: ClientSession = None) -> Union[Dict[str, ResultDict],
Dict[str, Dict[str, ResultDict]]]:
"""
Returns all fundamentals (balance sheet, income statement and cash flow statement) of the specified company.
"""