File tree 5 files changed +178
-143
lines changed
Filter options
5 files changed +178
-143
lines changed
Original file line number Diff line number Diff line change @@ -16,6 +16,59 @@ in our repository.
16
16
17
17
.. towncrier release notes start
18
18
19
+ Version 3.0.0-dev.2
20
+ ===================
21
+
22
+ :Released: 2020-11-04
23
+ :Maintainer:
24
+
25
+
26
+ Improved Documentation
27
+ ----------------------
28
+
29
+ * :gh: `312 `: Rework "Usage" section.
30
+
31
+ * Mention the rename of :class: `~semver.version.VersionInfo ` to
32
+ :class: `~semver.version.Version ` class
33
+ * Remove semver. prefix in doctests to make examples shorter
34
+ * Correct some references to dunder methods like
35
+ :func: `~.semver.version.Version.__getitem__ `,
36
+ :func: `~.semver.version.Version.__gt__ ` etc.
37
+ * Remove inconsistencies and mention module level function as
38
+ deprecated and discouraged from using
39
+ * Make empty :py:func: `super ` call in :file: `semverwithvprefix.py ` example
40
+
41
+
42
+
43
+ ----
44
+
45
+
46
+ Version 3.0.0-dev.2
47
+ ===================
48
+
49
+ :Released: 2020-11-04
50
+ :Maintainer:
51
+
52
+
53
+ Improved Documentation
54
+ ----------------------
55
+
56
+ * :gh: `312 `: Rework "Usage" section.
57
+
58
+ * Mention the rename of :class: `~semver.version.VersionInfo ` to
59
+ :class: `~semver.version.Version ` class
60
+ * Remove semver. prefix in doctests to make examples shorter
61
+ * Correct some references to dunder methods like :func: `__getitem__ `,
62
+ :func: `__gt__ ` etc.
63
+ * Remove inconsistencies and mention module level function as
64
+ deprecated and discouraged from using
65
+ * Make empty :py:func: `super ` call in :file: `semverwithvprefix.py ` example
66
+
67
+
68
+
69
+ ----
70
+
71
+
19
72
Version 3.0.0-dev.2
20
73
===================
21
74
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ Rework "Usage" section.
2
+
3
+ * Mention the rename of :class: `~semver.version.VersionInfo ` to
4
+ :class: `~semver.version.Version ` class
5
+ * Remove semver. prefix in doctests to make examples shorter
6
+ * Correct some references to dunder methods like
7
+ :func: `~.semver.version.Version.__getitem__ `,
8
+ :func: `~.semver.version.Version.__gt__ ` etc.
9
+ * Remove inconsistencies and mention module level function as
10
+ deprecated and discouraged from using
11
+ * Make empty :py:func: `super ` call in :file: `semverwithvprefix.py ` example
Original file line number Diff line number Diff line change @@ -7,25 +7,22 @@ class SemVerWithVPrefix(Version):
7
7
"""
8
8
9
9
@classmethod
10
- def parse (cls , version ) :
10
+ def parse (cls , version : str ) -> "SemVerWithVPrefix" :
11
11
"""
12
12
Parse version string to a Version instance.
13
13
14
14
:param version: version string with "v" or "V" prefix
15
- :type version: str
16
15
:raises ValueError: when version does not start with "v" or "V"
17
16
:return: a new instance
18
- :rtype: :class:`SemVerWithVPrefix`
19
17
"""
20
18
if not version [0 ] in ("v" , "V" ):
21
19
raise ValueError (
22
20
"{v!r}: not a valid semantic version tag. Must start with 'v' or 'V'" .format (
23
21
v = version
24
22
)
25
23
)
26
- self = super (SemVerWithVPrefix , cls ).parse (version [1 :])
27
- return self
24
+ return super ().parse (version [1 :])
28
25
29
- def __str__ (self ):
26
+ def __str__ (self ) -> str :
30
27
# Reconstruct the tag
31
- return "v" + super (SemVerWithVPrefix , self ).__str__ ()
28
+ return "v" + super ().__str__ ()
You can’t perform that action at this time.
0 commit comments