mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-06-01 23:30:53 +00:00
Fix mypy error
This commit is contained in:
parent
5b19e37eb1
commit
48a8389b34
2 changed files with 2 additions and 2 deletions
|
|
@ -181,7 +181,7 @@ def json_to_data(json_string: str, custom_objects: Optional[Dict[str, Any]] = No
|
|||
@functools.singledispatch
|
||||
def open_path(
|
||||
path: Union[str, pathlib.Path, io.BufferedIOBase], mode: str, verbose: int = 0, suffix: Optional[str] = None
|
||||
) -> Union[io.BufferedWriter, io.BufferedReader, io.BytesIO]:
|
||||
) -> Union[io.BufferedWriter, io.BufferedReader, io.BytesIO, io.BufferedRandom]:
|
||||
"""
|
||||
Opens a path for reading or writing with a preferred suffix and raises debug information.
|
||||
If the provided path is a derivative of io.BufferedIOBase it ensures that the file
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from stable_baselines3.common.monitor import Monitor
|
|||
from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv, VecFrameStack, VecNormalize, VecVideoRecorder
|
||||
|
||||
try:
|
||||
import moviepy
|
||||
import moviepy # noqa: F401
|
||||
|
||||
have_moviepy = True
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue