From 623bf24f0c840fe9b9ee808d0b2d84de79918677 Mon Sep 17 00:00:00 2001 From: n+e <463003665@qq.com> Date: Mon, 14 Sep 2020 15:59:32 +0800 Subject: [PATCH] fix unittest (#218) --- tianshou/data/buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tianshou/data/buffer.py b/tianshou/data/buffer.py index 1e817d9..8cf4f6b 100644 --- a/tianshou/data/buffer.py +++ b/tianshou/data/buffer.py @@ -143,7 +143,7 @@ class ReplayBuffer: self._last_obs = save_only_last_obs self._index = 0 self._size = 0 - self._meta = Batch() + self._meta: Batch = Batch() self.reset() def __len__(self) -> int: