Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/nbconvert/_version.py: 80%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""nbconvert version info."""
3import re
5# Version string must appear intact for versioning
6__version__ = "7.16.6"
8# Build up version_info tuple for backwards compatibility
9pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)"
10match = re.match(pattern, __version__)
11assert match is not None
12parts: list[object] = [int(match[part]) for part in ["major", "minor", "patch"]]
13if match["rest"]:
14 parts.append(match["rest"])
15version_info = tuple(parts)