Skip to content

Commit c451f59

Browse files
committed
👕 Lint
1 parent 7d8a2a4 commit c451f59

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/_sources/conf.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,30 @@ def coerce(version):
5555
""",
5656
re.VERBOSE,
5757
)
58-
58+
5959
match = BASEVERSION.search(version)
6060
if not match:
6161
return (None, version)
6262

6363
ver = {
64-
key: 0 if value is None else value for key, value in match.groupdict().items()
64+
key: 0 if value is None else value for key, value
65+
in match.groupdict().items()
6566
}
6667
ver = semver.VersionInfo(**ver)
6768
rest = match.string[match.end() :] # noqa:E203
6869
return ver, rest
69-
70-
70+
71+
7172
def compare_versions(new, old):
7273
"""
7374
Function to compare two versions.
74-
75+
7576
Parameters
7677
----------
7778
new: str
78-
79+
7980
old: str
80-
81+
8182
Returns
8283
-------
8384
bool
@@ -92,7 +93,7 @@ def compare_versions(new, old):
9293
(outright == 0) and comparisons[1][0] >= comparisons[1][1]
9394
)
9495
)
95-
96+
9697

9798
# If extensions (or modules to document with autodoc) are in another directory,
9899
# add these directories to sys.path here. If the directory is relative to the

0 commit comments

Comments
 (0)