@@ -644,9 +644,9 @@ def parse(version):
644
644
Parse version string to a VersionInfo instance.
645
645
646
646
:param version: version string
647
- :return: a :class:`semver. VersionInfo` instance
647
+ :return: a :class:`VersionInfo` instance
648
648
:raises: :class:`ValueError`
649
- :rtype: :class:`semver. VersionInfo`
649
+ :rtype: :class:`VersionInfo`
650
650
651
651
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
652
652
VersionInfo(major=3, minor=4, patch=5, \
@@ -667,14 +667,14 @@ def parse(version):
667
667
def replace (self , ** parts ):
668
668
"""
669
669
Replace one or more parts of a version and return a new
670
- :class:`semver. VersionInfo` object, but leave self untouched
670
+ :class:`VersionInfo` object, but leave self untouched
671
671
672
672
.. versionadded:: 2.9.0
673
673
Added :func:`VersionInfo.replace`
674
674
675
675
:param dict parts: the parts to be updated. Valid keys are:
676
676
``major``, ``minor``, ``patch``, ``prerelease``, or ``build``
677
- :return: the new :class:`semver. VersionInfo` object with the changed
677
+ :return: the new :class:`VersionInfo` object with the changed
678
678
parts
679
679
:raises: :class:`TypeError`, if ``parts`` contains invalid keys
680
680
"""
@@ -975,12 +975,12 @@ def finalize_version(version):
975
975
"""
976
976
Remove any prerelease and build metadata from the version string.
977
977
978
- .. versionadded:: 2.7.9
979
- Added :func:`finalize_version`
980
-
981
978
.. deprecated:: 2.10.0
982
979
Use :func:`semver.VersionInfo.finalize_version` instead.
983
980
981
+ .. versionadded:: 2.7.9
982
+ Added :func:`finalize_version`
983
+
984
984
:param version: version string
985
985
:return: the finalized version string
986
986
:rtype: str
@@ -997,12 +997,12 @@ def replace(version, **parts):
997
997
"""
998
998
Replace one or more parts of a version and return the new string.
999
999
1000
- .. versionadded:: 2.9.0
1001
- Added :func:`replace`
1002
-
1003
1000
.. deprecated:: 2.10.0
1004
1001
Use :func:`semver.VersionInfo.replace` instead.
1005
1002
1003
+ .. versionadded:: 2.9.0
1004
+ Added :func:`replace`
1005
+
1006
1006
:param str version: the version string to replace
1007
1007
:param dict parts: the parts to be updated. Valid keys are:
1008
1008
``major``, ``minor``, ``patch``, ``prerelease``, or ``build``
0 commit comments