Skip to content

Commit

Permalink
Fix typing issue in python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestum committed Sep 12, 2023
1 parent a7954c2 commit d5a0a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/seals/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class BoxRegion:


class MaskScoreWrapper(
gym.Wrapper[npt.NDArray, ActType, npt.NDArray, ActType],
Generic[ActType],
gym.Wrapper[ObsType, ActType, npt.NDArray, ActType],
Generic[ObsType, ActType],
):
"""Mask a list of box-shaped regions in the observation to hide reward info.
Expand All @@ -150,7 +150,7 @@ class MaskScoreWrapper(

def __init__(
self,
env: gym.Env,
env: gym.Env[ObsType, ActType],
score_regions: MaskedRegionSpecifier,
fill_value: Union[float, Sequence[float]] = 0,
):
Expand Down

0 comments on commit d5a0a46

Please sign in to comment.