Skip to content

Commit

Permalink
Use typing.List rather than list
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts committed Apr 3, 2024
1 parent 39f0900 commit 2f403da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stable_baselines3/common/vec_env/vec_video_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
self.enabled = enabled
self._closed = False

self.render_history: list[np.ndarray] = []
self.render_history: List[np.ndarray] = []
self.env = env

self.render_mode = env.render_mode
Expand Down Expand Up @@ -100,7 +100,7 @@ def __init__(
self.write_metadata()

logger.info(f"Starting new video recorder writing to {self.path}")
self.recorded_frames: list[np.ndarray] = []
self.recorded_frames: List[np.ndarray] = []

@property
def functional(self):
Expand Down

0 comments on commit 2f403da

Please sign in to comment.