summaryrefslogtreecommitdiff
path: root/sphinx/writers/_html4.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/_html4.py')
-rw-r--r--sphinx/writers/_html4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/_html4.py b/sphinx/writers/_html4.py
index 927309fca..0b670bf99 100644
--- a/sphinx/writers/_html4.py
+++ b/sphinx/writers/_html4.py
@@ -215,7 +215,7 @@ class HTML4Translator(SphinxTranslator, BaseTranslator):
'References must have "refuri" or "refid" attribute.'
atts['href'] = '#' + node['refid']
if not isinstance(node.parent, nodes.TextElement):
- assert len(node) == 1 and isinstance(node[0], nodes.image)
+ assert len(node) == 1 and isinstance(node[0], nodes.image) # NoQA: PT018
atts['class'] += ' image-reference'
if 'reftitle' in node:
atts['title'] = node['reftitle']