Skip to content

Commit d29852a

Browse files
committed
docs(version[parse]): Fix numpy doc styling
1 parent e3461d3 commit d29852a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/libtmux/_vendor/version.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,20 @@
4545
def parse(version: str) -> "Version":
4646
"""Parse the given version string.
4747
48+
Examples
49+
--------
4850
>>> parse('1.0.dev1')
4951
<Version('1.0.dev1')>
5052
51-
:param version: The version string to parse.
52-
:raises InvalidVersion: When the version string is not a valid version.
53+
Parameters
54+
----------
55+
version :
56+
The version string to parse.
57+
58+
Raises
59+
------
60+
InvalidVersion
61+
When the version string is not a valid version.
5362
"""
5463
return Version(version)
5564

0 commit comments

Comments
 (0)