From 39f4b9a569b3c41c207218909bdc9a05fe9a3bbd Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Tue, 19 May 2026 16:16:43 +0100 Subject: [PATCH] MAINT: Remove unneeded backslash in re.compile "/" is not a metacharacter. --- tests/test_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_constants.py b/tests/test_constants.py index 483b734996..8a3ad31fc7 100644 --- a/tests/test_constants.py +++ b/tests/test_constants.py @@ -17,7 +17,7 @@ def test_slash_prefix(): - Contains alphanumeric characters (letters and digits) - The attribute name should be a case-insensitive match, with underscores removed """ - pattern = re.compile(r"^\/[A-Z]+[a-zA-Z0-9]*$") + pattern = re.compile(r"^/[A-Z]+[a-zA-Z0-9]*$") for cls in PDF_KEYS: for attr in dir(cls): # Skip magic methods