fix typing in TensorboardCallback

This commit is contained in:
robcaulk
2023-04-26 10:54:54 +02:00
parent 0a05099713
commit e29ce218eb
2 changed files with 11 additions and 6 deletions

View File

@@ -127,6 +127,14 @@ class BaseEnvironment(gym.Env):
self.history: dict = {}
self.trade_history: list = []
def get_attr(self, attr: str):
"""
Returns the attribute of the environment
:param attr: attribute to return
:return: attribute
"""
return getattr(self, attr)
@abstractmethod
def set_action_space(self):
"""