mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 14:10:30 +00:00
Add type annotations for metadata and render_mode (#3007)
This commit is contained in:
@@ -107,8 +107,9 @@ class Env(Generic[ObsType, ActType], metaclass=decorator):
|
||||
"""
|
||||
|
||||
# Set this in SOME subclasses
|
||||
metadata = {"render_modes": []}
|
||||
render_mode = None # define render_mode if your environment supports rendering
|
||||
metadata: Dict[str, Any] = {"render_modes": []}
|
||||
# define render_mode if your environment supports rendering
|
||||
render_mode: Optional[str] = None
|
||||
reward_range = (-float("inf"), float("inf"))
|
||||
spec: "EnvSpec" = None
|
||||
|
||||
|
Reference in New Issue
Block a user