diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index ee80931c54..897726a42b 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -28,7 +28,7 @@ Others: Documentation: ^^^^^^^^^^^^^^ - Added stable-baselines-tf2 link on Projects page. (@sophiagu) - +- Fixed a typo in ``stable_baselines.common.env_checker.check_env`` (@OGordon100) Release 2.10.1 (2020-08-05) --------------------------- @@ -745,4 +745,4 @@ Thanks to @bjmuld @iambenzo @iandanforth @r7vme @brendenpetersen @huvar @abhiskk @Miffyli @dwiel @miguelrass @qxcv @jaberkow @eavelardev @ruifeng96150 @pedrohbtp @srivatsankrishnan @evilsocket @MarvineGothic @jdossgollin @SyllogismRXS @rusu24edward @jbulow @Antymon @seheevic @justinkterry @edbeeching @flodorner @KuKuXia @NeoExtended @PartiallyTyped @mmcenta @richardwu @tirafesi @caburu @johannes-dornheim @kvenkman @aakash94 -@enderdead @hardmaru @jbarsce @ColinLeongUDRI @shwang @YangRui2015 @sophiagu +@enderdead @hardmaru @jbarsce @ColinLeongUDRI @shwang @YangRui2015 @sophiagu @OGordon100 diff --git a/stable_baselines/common/env_checker.py b/stable_baselines/common/env_checker.py index 751b204f95..bba496b8fc 100644 --- a/stable_baselines/common/env_checker.py +++ b/stable_baselines/common/env_checker.py @@ -178,8 +178,8 @@ def check_env(env: gym.Env, warn: bool = True, skip_render_check: bool = True) - :param skip_render_check: (bool) Whether to skip the checks for the render method. True by default (useful for the CI) """ - assert isinstance(env, gym.Env), ("You environment must inherit from gym.Env class " - " cf https://github.com/openai/gym/blob/master/gym/core.py") + assert isinstance(env, gym.Env), ("Your environment must inherit from the gym.Env class " + "cf https://github.com/openai/gym/blob/master/gym/core.py") # ============= Check the spaces (observation and action) ================ _check_spaces(env)