Improve typehints / reduce warnings from mypy

This commit is contained in:
Matthias
2022-11-26 13:03:07 +01:00
parent 81fd2e588f
commit bdfedb5fcb
4 changed files with 6 additions and 6 deletions

View File

@@ -200,13 +200,13 @@ class BaseEnvironment(gym.Env):
return 0.
@abstractmethod
def is_tradesignal(self, action: int):
def is_tradesignal(self, action: int) -> bool:
"""
Determine if the signal is a trade signal. This is
unique to the actions in the environment, and therefore must be
inherited.
"""
return
return True
def _is_valid(self, action: int) -> bool:
"""