Skip to content

Commit

Permalink
Merge pull request #8 from Farama-Foundation/signature
Browse files Browse the repository at this point in the history
Adopt `gym>=0.22` reset signature
  • Loading branch information
vwxyzjn authored Feb 25, 2022
2 parents c91a2a0 + af76d46 commit 9ac3961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym_robotics/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GoalEnv(gym.Env):
actual observations of the environment as per usual.
"""

def reset(self, seed: Optional[int] = None):
def reset(self, options=None, seed: Optional[int] = None, infos=None):
super().reset(seed=seed)
# Enforce that each GoalEnv uses a Goal-compatible observation space.
if not isinstance(self.observation_space, gym.spaces.Dict):
Expand Down

0 comments on commit 9ac3961

Please sign in to comment.