We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ae5383 commit 123aa6bCopy full SHA for 123aa6b
google/api_core/_python_package_support.py
@@ -60,9 +60,13 @@ def _parse_version_to_tuple(version_string: str) -> ParsedVersion:
60
61
Example: "4.25.8" -> (4, 25, 8)
62
Ignores non-numeric parts and handles common version formats.
63
+
64
+ Args:
65
+ version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
66
67
+ Returns:
68
+ Tuple of integers for the parsed version string.
69
"""
- # Simple split and try to convert to int. Non-numeric parts are ignored
- # or will raise an exception that is handled in the caller.
70
parts = []
71
for part in version_string.split("."):
72
try:
0 commit comments