Skip to content

Commit

Permalink
chore: Mypy changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaleabTessera committed Nov 22, 2021
1 parent 89ace75 commit 784d437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mava/environment_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def _perform_turn(self, timestep: dm_env.TimeStep) -> dm_env.TimeStep:
# save action, timestep pairs for current agent
timestep = self._set_step_type(timestep, self._step_type[agent])
self._agent_action_timestep[agent] = (
self._prev_action[agent],
self._prev_action[agent], # type: ignore
timestep,
) # type: ignore
)

self._prev_timestep[agent] = timestep

Expand Down Expand Up @@ -181,9 +181,9 @@ def _collect_last_timesteps(self, timestep: dm_env.TimeStep) -> None:
agent = self._environment.current_agent
timestep = self._set_step_type(timestep, dm_env.StepType.LAST)
self._agent_action_timestep[agent] = (
self._prev_action[agent],
self._prev_action[agent], # type: ignore
timestep,
) # type: ignore
)

timestep = self._environment.step(
generate_zeros_from_spec(self._environment.action_spec()[agent])
Expand Down

0 comments on commit 784d437

Please sign in to comment.