Skip to content

Commit

Permalink
Placate ruff regarding version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 23, 2024
1 parent 951b0fd commit eaec6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grudge/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 eaec6d1

Please sign in to comment.