mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-29 17:45:07 +00:00
Assert is a keyword, not a function
This commit is contained in:
@@ -21,7 +21,7 @@ class OneRoundDeterministicRewardEnv(gym.Env):
|
||||
self._reset()
|
||||
|
||||
def _step(self, action):
|
||||
assert(self.action_space.contains(action))
|
||||
assert self.action_space.contains(action)
|
||||
if action:
|
||||
reward = 1
|
||||
else:
|
||||
|
Reference in New Issue
Block a user