Skip to content

Commit 123aa6b

Browse files
committed
update docstring
1 parent 0ae5383 commit 123aa6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

google/api_core/_python_package_support.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,13 @@ def _parse_version_to_tuple(version_string: str) -> ParsedVersion:
6060
6161
Example: "4.25.8" -> (4, 25, 8)
6262
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.
6369
"""
64-
# Simple split and try to convert to int. Non-numeric parts are ignored
65-
# or will raise an exception that is handled in the caller.
6670
parts = []
6771
for part in version_string.split("."):
6872
try:

0 commit comments

Comments
 (0)