Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
younik committed Jun 24, 2023
1 parent c528132 commit 97dbe68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def reset(self, seed=None, options=None):
class DummyTextEnv(gym.Env):
def __init__(self):
self.action_space = spaces.Text(max_length=10, min_length=2, charset="01")
utf8_charset = ''.join([chr(i) for i in range(0x100)])
utf8_charset = "".join([chr(i) for i in range(0x100)])
self.observation_space = spaces.Text(max_length=20, charset=utf8_charset)

def step(self, action):
Expand Down Expand Up @@ -264,7 +264,7 @@ def register_dummy_envs():
gym.spaces.Box(low=-1, high=4, shape=(2, 2, 2), dtype=np.float32),
gym.spaces.Box(low=-1, high=4, shape=(3, 3, 3), dtype=np.float32),
gym.spaces.Text(max_length=10, min_length=10),
gym.spaces.Text(max_length=20, charset=''.join([chr(i) for i in range(0x100)])),
gym.spaces.Text(max_length=20, charset="".join([chr(i) for i in range(0x100)])),
gym.spaces.Text(max_length=10, charset="01"),
gym.spaces.Tuple(
(
Expand Down

0 comments on commit 97dbe68

Please sign in to comment.