diff --git a/poptimizer/data/views/common.py b/poptimizer/data/views/common.py index a239b55c..87370a26 100644 --- a/poptimizer/data/views/common.py +++ b/poptimizer/data/views/common.py @@ -19,7 +19,7 @@ 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: @@ -27,7 +27,7 @@ def dohod(ticker: str) -> pd.DataFrame: 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: @@ -42,7 +42,7 @@ 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: @@ -50,7 +50,7 @@ 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: @@ -58,4 +58,4 @@ 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 diff --git a/poptimizer/data/views/moex.py b/poptimizer/data/views/moex.py index 5b37ab67..a5d7c3e2 100644 --- a/poptimizer/data/views/moex.py +++ b/poptimizer/data/views/moex.py @@ -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