Remove no longer needed "# type: ignore" comments
With the ORM columns annotated, `mypy` understands these lines on its own
This commit is contained in:
parent
607055d55a
commit
295a271ad7
1 changed files with 4 additions and 4 deletions
|
|
@ -299,7 +299,7 @@ class OrderHistory:
|
||||||
|
|
||||||
# Take only the counts at the `predict_at` time.
|
# Take only the counts at the `predict_at` time.
|
||||||
training_ts = intra_pixel.loc[
|
training_ts = intra_pixel.loc[
|
||||||
first_start_at : last_start_at : self._n_daily_time_steps, # type:ignore
|
first_start_at : last_start_at : self._n_daily_time_steps,
|
||||||
"n_orders",
|
"n_orders",
|
||||||
]
|
]
|
||||||
if len(training_ts) != frequency * train_horizon:
|
if len(training_ts) != frequency * train_horizon:
|
||||||
|
|
@ -370,7 +370,7 @@ class OrderHistory:
|
||||||
|
|
||||||
# Take all the counts between `first_train_day` and `last_train_day`.
|
# Take all the counts between `first_train_day` and `last_train_day`.
|
||||||
training_ts = intra_pixel.loc[
|
training_ts = intra_pixel.loc[
|
||||||
first_start_at:last_start_at, # type:ignore
|
first_start_at:last_start_at,
|
||||||
"n_orders",
|
"n_orders",
|
||||||
]
|
]
|
||||||
if len(training_ts) != frequency * train_horizon:
|
if len(training_ts) != frequency * train_horizon:
|
||||||
|
|
@ -392,7 +392,7 @@ class OrderHistory:
|
||||||
) - dt.timedelta(minutes=self._time_step)
|
) - dt.timedelta(minutes=self._time_step)
|
||||||
|
|
||||||
actuals_ts = intra_pixel.loc[
|
actuals_ts = intra_pixel.loc[
|
||||||
first_prediction_at:last_prediction_at, # type:ignore
|
first_prediction_at:last_prediction_at,
|
||||||
"n_orders",
|
"n_orders",
|
||||||
]
|
]
|
||||||
if not len(actuals_ts): # pragma: no cover
|
if not len(actuals_ts): # pragma: no cover
|
||||||
|
|
@ -470,7 +470,7 @@ class OrderHistory:
|
||||||
# Take all the counts between `first_train_day` and `last_train_day`,
|
# Take all the counts between `first_train_day` and `last_train_day`,
|
||||||
# including the ones on the `predict_at` day prior to `predict_at`.
|
# including the ones on the `predict_at` day prior to `predict_at`.
|
||||||
training_ts = intra_pixel.loc[
|
training_ts = intra_pixel.loc[
|
||||||
first_start_at:last_start_at, # type:ignore
|
first_start_at:last_start_at,
|
||||||
"n_orders",
|
"n_orders",
|
||||||
]
|
]
|
||||||
n_time_steps_on_predict_day = (
|
n_time_steps_on_predict_day = (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue