Skip to content

Commit b426cd9

Browse files
committed
Fix improper use of f string.
There was an f string without a substitution. This also holds back pylint to 2.4.4. Pylint 2.5.2 was having parsing errors.
1 parent 7ba00df commit b426cd9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/sphinx_c_autodoc/viewcode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def _insert_construct_anchor(
296296
f'<div class="viewcode-block" id="{C_DOMAIN_LINK_PREFIX}{prefix}">'
297297
+ highlighted_source[start]
298298
)
299-
highlighted_source[end] += f"</div>"
299+
highlighted_source[end] += "</div>"
300300
for child in construct.get("children", []):
301301
_insert_construct_anchor(app, highlighted_source, child, prefix)
302302

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ changedir =
2020
py{37}: {toxinidir}/tests
2121
deps =
2222
black
23-
pylint
23+
# Hold back 2.5.2 is causing problems..
24+
pylint==2.4.4
2425
pycodestyle
2526
mypy
2627
flake8
@@ -70,4 +71,4 @@ show-source = True
7071
statistics = True
7172
max-complexity = 10
7273
max-line-length = 127
73-
ignore=E402,E501,E128,W292,W503,E203
74+
ignore=E402,E501,E128,W292,W503,E203

0 commit comments

Comments
 (0)