Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 491b695

Browse files
committed
fix: fix populating PYTHON_VERSION_INFO
1 parent 0550f83 commit 491b695

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

google/api_core/_python_version_support.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ class VersionInfo(NamedTuple):
117117
),
118118
]
119119

120-
PYTHON_VERSION_INFO: Dict[Tuple[int, int], VersionInfo] = {
121-
tuple(map(int, info.version.split("."))): info for info in PYTHON_VERSIONS
122-
}
120+
PYTHON_VERSION_INFO: Dict[Tuple[int, int], VersionInfo] = {}
121+
for info in PYTHON_VERSIONS:
122+
major, minor = map(int, info.version.split("."))
123+
PYTHON_VERSION_INFO[(major, minor)] = info
123124

124125

125126
LOWEST_TRACKED_VERSION = min(PYTHON_VERSION_INFO.keys())

0 commit comments

Comments
 (0)