Skip to content

Commit

Permalink
fix: add render_mode getter to Wrappers (#2884)
Browse files Browse the repository at this point in the history
  • Loading branch information
younik committed Jun 13, 2022
1 parent 1a7a727 commit 053ee80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gym/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ def metadata(self) -> dict:
def metadata(self, value):
self._metadata = value

@property
def render_mode(self) -> Optional[str]:
"""Returns the environment render_mode."""
return self.env.render_mode

@property
def np_random(self) -> RandomNumberGenerator:
"""Returns the environment np_random."""
Expand Down

0 comments on commit 053ee80

Please sign in to comment.