Skip to content

Commit 02dca85

Browse files
committed
Fix mypy error
1 parent 57e8b97 commit 02dca85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stable_baselines3/common/save_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def json_to_data(json_string: str, custom_objects: Optional[dict[str, Any]] = No
181181
@functools.singledispatch
182182
def open_path(
183183
path: Union[str, pathlib.Path, io.BufferedIOBase], mode: str, verbose: int = 0, suffix: Optional[str] = None
184-
) -> Union[io.BufferedWriter, io.BufferedReader, io.BytesIO]:
184+
) -> Union[io.BufferedWriter, io.BufferedReader, io.BytesIO, io.BufferedRandom]:
185185
"""
186186
Opens a path for reading or writing with a preferred suffix and raises debug information.
187187
If the provided path is a derivative of io.BufferedIOBase it ensures that the file

tests/test_vec_envs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv, VecFrameStack, VecNormalize, VecVideoRecorder
1818

1919
try:
20-
import moviepy
20+
import moviepy # noqa: F401
2121

2222
have_moviepy = True
2323
except ImportError:

0 commit comments

Comments
 (0)