Skip to content

Commit

Permalink
fix: Environment.wraps signature now has correct arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
epignatelli committed Jan 13, 2024
1 parent 0f07f3d commit 88fc99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helx/envs/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def step(
class EnvironmentWrapper(Environment):
env: Any = struct.field(pytree_node=False)

@abc.abstractmethod
def wraps(self, env: Any) -> Timestep:
@abc.abstractclassmethod
def wraps(cls, env: Any) -> EnvironmentWrapper:
raise NotImplementedError()

def unwrapped(self) -> Any:
Expand Down

0 comments on commit 88fc99c

Please sign in to comment.