Skip to content

Commit cb97d5c

Browse files
f14-bertolottifrancesco-bertolottiFrancesco Bertolotti
authored
Fix set using wrong syntax (#1057)
set(1,2,3) -> {1,2,3} Co-authored-by: Francesco Bertolotti <[email protected]> Co-authored-by: Francesco Bertolotti <[email protected]>
1 parent b8ccd20 commit cb97d5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lighteval/tasks/tasks/ifbench/instructions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ def get_instruction_args_keys(self):
11331133

11341134
def check_following(self, value):
11351135
"""Checks if the response includes at least {N} pronouns."""
1136-
pronouns = set(
1136+
pronouns = {
11371137
"i",
11381138
"me",
11391139
"my",
@@ -1165,7 +1165,7 @@ def check_following(self, value):
11651165
"their",
11661166
"theirs",
11671167
"themselves",
1168-
)
1168+
}
11691169
value = value.replace(
11701170
"/", " "
11711171
) # to correctly count pronoun sets like she/her/hers, a common use case of pronouns

0 commit comments

Comments
 (0)