From d36d3722be1e1f45f4654f5dcbce84a0a98ad735 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 24 Nov 2024 14:11:38 -0600 Subject: [PATCH] Placate ruff regarding regex string --- meshmode/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshmode/version.py b/meshmode/version.py index 6e2608de..19ec52d0 100644 --- a/meshmode/version.py +++ b/meshmode/version.py @@ -4,7 +4,7 @@ def _parse_version(version: str) -> tuple[tuple[int, ...], str]: import re - m = re.match("^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT) + m = re.match(r"^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT) assert m is not None return tuple(int(nr) for nr in m.group(1).split(".")), m.group(2)