From ca944fed2d34912c34ab2342ed2d4388affe3881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Gallou=C3=A9dec?= <45557362+qgallouedec@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:53:00 +0100 Subject: [PATCH] Update version (#1220) * Replace .to(device) when possible * fix numpy dep * black * Add warning for device != cpu and copy=False * Update changelog * Remove warning * Update buffers.py * Update version * Fix type checking Co-authored-by: Antonin RAFFIN --- docs/misc/changelog.rst | 2 +- stable_baselines3/__init__.py | 2 +- stable_baselines3/version.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index f6e6b4a..ffb6773 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -4,7 +4,7 @@ Changelog ========== -Release 1.7.0a5 (WIP) +Release 1.7.0a6 (WIP) -------------------------- Breaking Changes: diff --git a/stable_baselines3/__init__.py b/stable_baselines3/__init__.py index e1606bd..680e254 100644 --- a/stable_baselines3/__init__.py +++ b/stable_baselines3/__init__.py @@ -13,7 +13,7 @@ from stable_baselines3.td3 import TD3 # Small monkey patch so gym 0.21 is compatible with numpy >= 1.24 # TODO: remove when upgrading to gym 0.26 -np.bool = bool +np.bool = bool # type: ignore[attr-defined] # Read version from file version_file = os.path.join(os.path.dirname(__file__), "version.txt") diff --git a/stable_baselines3/version.txt b/stable_baselines3/version.txt index 5d819d4..21392a8 100644 --- a/stable_baselines3/version.txt +++ b/stable_baselines3/version.txt @@ -1 +1 @@ -1.7.0a5 +1.7.0a6