Skip to content

Commit

Permalink
Placate ruff regarding regex string
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 24, 2024
1 parent 003beee commit d36d372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshmode/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d36d372

Please sign in to comment.