Skip to content

Commit

Permalink
Make mypy happy and use [] instea of . notation
Browse files Browse the repository at this point in the history
  * mypy does not know that value of keys are Batch
  • Loading branch information
dantp-ai committed Mar 18, 2024
1 parent 91a3ee2 commit a481e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/base/test_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def test_ignore_obs_next(size: int = 10) -> None:
],
),
)
assert np.allclose(data.info["if"], data2.info["if"])
assert np.allclose(data["info"]["if"], data2["info"]["if"])
assert np.allclose(
data.info["if"],
data["info"]["if"],
np.array(
[
[0, 0, 0, 0],
Expand Down

0 comments on commit a481e2f

Please sign in to comment.