Skip to content

Escape backslash in HLE judge prompt config - #543

Open
MBK-fr wants to merge 1 commit into
AISBench:masterfrom
MBK-fr:fix/invalid-escape-sequence-syntaxwarning
Open

MBK-fr wants to merge 1 commit into
AISBench:masterfrom
MBK-fr:fix/invalid-escape-sequence-syntaxwarning

Conversation

@MBK-fr

@MBK-fr MBK-fr commented Sep 14, 2026

Copy link
Copy Markdown

Problem

ais_bench/benchmark/configs/datasets/hle/hle_llmjudge.py contains a \% in a non-raw string literal, so Python 3.12+ raises SyntaxWarning: invalid escape sequence '\%'.

Why it matters here

The project declares requires-python >=3.10.0 with no upper bound, so users on Python 3.12+ hit the warning when this config is imported.

Fix

Escape the backslash; the prompt string is byte-for-byte identical (ruff W605-style).

Verification

ast.dump unchanged; python3 -W error py_compile passes after, failed before.


🤖 Generated with Claude Code

https://claude.ai/code/session_014HBQNzAf5C2E3MiJC48HQw

ais_bench/benchmark/configs/datasets/hle/hle_llmjudge.py contains a
`\%` in a non-raw string literal, so Python 3.12+ raises
`SyntaxWarning: invalid escape sequence '\%'`. The project declares
`requires-python >=3.10.0` (no upper bound), so the warning appears for
users on 3.12+. Escaping the backslash keeps the prompt string
identical.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HBQNzAf5C2E3MiJC48HQw
@github-actions github-actions Bot added no_issue PR 未关联任何 Issue,合入前必须关联 Issue no_review PR 未包含任何检视意见,合入前必须包含检视意见 labels Sep 14, 2026
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:no_issueno_review

  • 未关联 Issue:请在 PR 描述中关联 Issue,例如 Fixes #123Relates to #123
  • 无检视意见:请至少邀请一位 reviewer 提交检视意见(Approve / Request changes / Comment 均可)。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no_issue PR 未关联任何 Issue,合入前必须关联 Issue no_review PR 未包含任何检视意见,合入前必须包含检视意见

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant