From 894c25584d4ef9a7de8b8cd5d77b05c4db75533c Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Thu, 7 Mar 2024 09:55:18 +0000 Subject: [PATCH] `pre-commit` --- gymnasium/utils/env_checker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gymnasium/utils/env_checker.py b/gymnasium/utils/env_checker.py index 7c0f512d7..3e8c6cba4 100644 --- a/gymnasium/utils/env_checker.py +++ b/gymnasium/utils/env_checker.py @@ -189,7 +189,9 @@ def check_step_determinism(env: gym.Env, seed=123): env.unwrapped._np_random.bit_generator.state # pyright: ignore [reportOptionalMemberAccess] == seeded_rng.bit_generator.state ), "The `.np_random` is not properly been updated after step." - assert data_equivalence(obs_0, obs_1, True), "step observation is not deterministic." + assert data_equivalence( + obs_0, obs_1, True + ), "step observation is not deterministic." assert data_equivalence(rew_0, rew_1, True), "step reward is not deterministic." assert data_equivalence(term_0, term_0, True), "step terminal is not deterministic." assert (