Skip to content

Commit

Permalink
Update iterate type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts committed Sep 20, 2024
1 parent 4bc80cf commit 148c212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gymnasium/vector/utils/space_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _batch_spaces_undefined(spaces: list[Graph | Text | Sequence | OneOf]):


@singledispatch
def iterate(space: Space[T_cov], items: Iterable[T_cov]) -> Iterator:
def iterate(space: Space[T_cov], items: T_cov) -> Iterator:
"""Iterate over the elements of a (batched) space.
Args:
Expand Down

0 comments on commit 148c212

Please sign in to comment.