ensure typing, remove unsued code

This commit is contained in:
robcaulk
2022-11-26 12:11:59 +01:00
parent 8dbfd2cacf
commit 81fd2e588f
5 changed files with 46 additions and 44 deletions

View File

@@ -158,7 +158,7 @@ class Base5ActionRLEnv(BaseEnvironment):
(action == Actions.Long_exit.value and self._position == Positions.Short) or
(action == Actions.Long_exit.value and self._position == Positions.Neutral))
def _is_valid(self, action: int):
def _is_valid(self, action: int) -> bool:
# trade signal
"""
Determine if the signal is valid.