Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for gymnasium v1.0 #475

Merged
merged 8 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore mypy for gym 0.29
araffin committed Nov 4, 2024
commit 7d1ef26ab5b4244085db40af77c390a58711917a
2 changes: 1 addition & 1 deletion rl_zoo3/gym_patches.py
Original file line number Diff line number Diff line change
@@ -42,5 +42,5 @@ def step(self, action):
try:
gymnasium.wrappers.time_limit.TimeLimit = PatchedTimeLimit # type: ignore[misc]
except AttributeError:
gymnasium.wrappers.common.TimeLimit = PatchedTimeLimit # type: ignore[misc]
gymnasium.wrappers.common.TimeLimit = PatchedTimeLimit # type: ignore
gymnasium.envs.registration.TimeLimit = PatchedTimeLimit # type: ignore[misc,attr-defined]