Skip to content

Commit 882fb08

Browse files
Acme Contributorcopybara-github
authored andcommitted
Resolve unsoundness caught by pytype --strict-none-binding.
PiperOrigin-RevId: 882611409 Change-Id: If184574edd2ff3bb4f16bb6500ba543bd7ba8525
1 parent c3ea857 commit 882fb08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

acme/agents/jax/pwil/adder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def add(self,
3838
action: types.NestedArray,
3939
next_timestep: dm_env.TimeStep,
4040
extras: types.NestedArray = ()):
41+
assert self._latest_observation is not None
4142
updated_timestep = next_timestep._replace(
4243
reward=self._rewarder.append_and_compute_reward(
4344
observation=self._latest_observation, action=action))

0 commit comments

Comments
 (0)