From 47be07eb4a632850b28cc584b4caa54ed02cd924 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Wed, 17 Nov 2021 14:47:39 +0100 Subject: Update the Version.parse() to match the code The docstring was lying by saying a Version object was returned. Rather this function returns a tuple of version parts. Signed-off-by: Philippe Ombredanne --- semantic_version/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'semantic_version') diff --git a/semantic_version/base.py b/semantic_version/base.py index 871ccb0..82a9af0 100644 --- a/semantic_version/base.py +++ b/semantic_version/base.py @@ -290,7 +290,8 @@ class Version(object): @classmethod def parse(cls, version_string, partial=False, coerce=False): - """Parse a version string into a Version() object. + """Parse a version string into a tuple of components: + (major, minor, patch, prerelease, build). Args: version_string (str), the version string to parse -- cgit v1.2.1