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 75727c9 commit 2d1c4b0Copy full SHA for 2d1c4b0
docs/usage.rst
@@ -50,6 +50,11 @@ A :class:`semver.VersionInfo` instance can be created in different ways:
50
>>> semver.VersionInfo.parse("3.4.5-pre.2+build.4")
51
VersionInfo(major=3, minor=4, patch=5, prerelease='pre.2', build='build.4')
52
53
+* From a byte string::
54
+
55
+ >>> semver.VersionInfo.parse(b"2.3.4")
56
+ VersionInfo(major=2, minor=3, patch=4, prerelease=None, build=None)
57
58
* From individual parts by a dictionary::
59
60
>>> d = {'major': 3, 'minor': 4, 'patch': 5, 'prerelease': 'pre.2', 'build': 'build.4'}
0 commit comments