Skip to content

Commit f85d653

Browse files
committed
chore(vendor[version]): pydocstyle manual fixes
1 parent c3e03d0 commit f85d653

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/libtmux/_vendor/version.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# This file is dual licensed under the terms of the Apache License, Version
33
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
44
# for complete details.
5-
"""
5+
"""Backport of the ``packaging.version`` module from Python 3.8.
6+
67
.. testsetup::
78
89
from packaging.version import parse, Version
@@ -159,7 +160,7 @@ def __ne__(self, other: object) -> bool:
159160

160161

161162
class Version(_BaseVersion):
162-
"""This class abstracts handling of a project's versions.
163+
"""Class abstracts handling of a project's versions.
163164
164165
A :class:`Version` instance is comparison aware and can be compared and
165166
sorted using the standard Python interfaces.
@@ -222,15 +223,15 @@ def __init__(self, version: str) -> None:
222223
)
223224

224225
def __repr__(self) -> str:
225-
"""A representation of the Version that shows all internal state.
226+
"""Return representation of the Version that shows all internal state.
226227
227228
>>> Version('1.0.0')
228229
<Version('1.0.0')>
229230
"""
230231
return f"<Version('{self}')>"
231232

232233
def __str__(self) -> str:
233-
"""A string representation of the version that can be rounded-tripped.
234+
"""Return string representation of the version that can be rounded-tripped.
234235
235236
>>> str(Version("1.0a5"))
236237
'1.0a5'
@@ -491,7 +492,7 @@ def _parse_letter_version(
491492

492493

493494
def _parse_local_version(local: str) -> Optional[LocalType]:
494-
"""Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve")."""
495+
"""Take a string like abc.1.twelve and turns it into ("abc", 1, "twelve")."""
495496
if local is not None:
496497
return tuple(
497498
part.lower() if not part.isdigit() else int(part)

0 commit comments

Comments
 (0)