Skip to content

Commit

Permalink
Fix bug in EnvParams.max_steps type (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJessop authored Nov 16, 2024
1 parent c39870b commit a46e78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xminigrid/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EnvParams(struct.PyTreeNode):
height: int = struct.field(pytree_node=False, default=9)
width: int = struct.field(pytree_node=False, default=9)
view_size: int = struct.field(pytree_node=False, default=7)
max_steps: Optional[None] = struct.field(pytree_node=False, default=None)
max_steps: Optional[int] = struct.field(pytree_node=False, default=None)
render_mode: str = struct.field(pytree_node=False, default="rgb_array")


Expand Down

0 comments on commit a46e78c

Please sign in to comment.