Skip to content

Commit

Permalink
style(mypy): отключено ложное срабатывание
Browse files Browse the repository at this point in the history
  • Loading branch information
WLM1ke committed Aug 31, 2020
1 parent 93d389c commit 5d1740c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions poptimizer/data/views/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ def conomy(ticker: str) -> pd.DataFrame:
table_name = base.TableName(base.CONOMY, ticker)
app_config = config.get()
df = handlers.get_df(table_name, app_config)
return df.loc[app_config.start_date :]
return df.loc[app_config.start_date :] # type: ignore


def dohod(ticker: str) -> pd.DataFrame:
"""Информация по дивидендам с dohod.ru."""
table_name = base.TableName(base.DOHOD, ticker)
app_config = config.get()
df = handlers.get_df(table_name, app_config)
return df.loc[app_config.start_date :]
return df.loc[app_config.start_date :] # type: ignore


def smart_lab() -> pd.DataFrame:
Expand All @@ -42,20 +42,20 @@ def dividends(ticker: str) -> pd.DataFrame:
table_name = base.TableName(base.DIVIDENDS, ticker)
app_config = config.get()
df = handlers.get_df(table_name, app_config)
return df.loc[app_config.start_date :]
return df.loc[app_config.start_date :] # type: ignore


def dividends_force_update(ticker: str) -> pd.DataFrame:
"""Дивиденды для данного тикера с принудительным обновлением данных по дивидендам."""
table_name = base.TableName(base.DIVIDENDS, ticker)
app_config = config.get()
df = handlers.get_df(table_name, app_config)
return df.loc[app_config.start_date :]
return df.loc[app_config.start_date :] # type: ignore


def cpi(date: pd.Timestamp) -> pd.Series:
"""Потребительская инфляция."""
table_name = base.TableName(base.CPI, base.CPI)
app_config = config.get()
df = handlers.get_df(table_name, app_config)
return df.loc[app_config.start_date : date, col.CPI]
return df.loc[app_config.start_date : date, col.CPI] # type: ignore
2 changes: 1 addition & 1 deletion poptimizer/data/views/moex.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ def index(last_date: pd.Timestamp) -> pd.DataFrame:
table_name = base.TableName(base.INDEX, base.INDEX)
app_config = config.get()
df = handlers.get_df(table_name, app_config)
return df.loc[app_config.start_date : last_date, col.CLOSE]
return df.loc[app_config.start_date : last_date, col.CLOSE] # type: ignore

0 comments on commit 5d1740c

Please sign in to comment.