Skip to content

Commit

Permalink
Fix typo with player_names kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower committed Dec 20, 2023
1 parent 4abf91e commit 6faa225
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chatarena/environments/umshini/content_moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def create_content_moderation_env(
):
if player_names is not None:
assert isinstance(player_names, list), "player_names must be a list"
assert len(player_names == 2), "number of players must be 2"
assert len(player_names) == 2, "number of players must be 2"
assert isinstance(player_names[0], str), "player names must be strings"
assert isinstance(player_names[1], str), "player names must be strings"

Expand Down
2 changes: 1 addition & 1 deletion chatarena/environments/umshini/debate.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def create_debate_env(
):
if player_names is not None:
assert isinstance(player_names, list), "player_names must be a list"
assert len(player_names == 2), "number of players must be 2"
assert len(player_names) == 2, "number of players must be 2"
assert isinstance(player_names[0], str), "player names must be strings"
assert isinstance(player_names[1], str), "player names must be strings"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def create_symmetric_content_moderation_env(
):
if player_names is not None:
assert isinstance(player_names, list), "player_names must be a list"
assert len(player_names == 2), "number of players must be 2"
assert len(player_names) == 2, "number of players must be 2"
assert isinstance(player_names[0], str), "player names must be strings"
assert isinstance(player_names[1], str), "player names must be strings"

Expand Down

0 comments on commit 6faa225

Please sign in to comment.