Skip to content

Commit 0bc3cb0

Browse files
committed
style: fix type checker
1 parent 44ed4e9 commit 0bc3cb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/rcs/envs/sim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def env_from_xml_paths(
199199
class RandomCubePos(SimWrapper):
200200
"""Wrapper to randomly place cube in the lab environments."""
201201

202-
def __init__(self, env: gym.Env, include_rotation: bool = False):
203-
super().__init__(env)
202+
def __init__(self, env: gym.Env, simulation: sim.Sim, include_rotation: bool = False):
203+
super().__init__(env, simulation)
204204
self.include_rotation = include_rotation
205205

206206
def reset(
@@ -268,7 +268,7 @@ def step(self, action: dict[str, Any]):
268268
# reward += static_reward * info["is_obj_placed"]
269269

270270
# normalize
271-
reward /= 5
271+
reward /= 5 # type: ignore
272272
return obs, reward, success, truncated, info
273273

274274

0 commit comments

Comments
 (0)