fix: use PEP 604 syntax so that the old Ruff will be happy (can be changed when we switch to a newer Ruff later)

This commit is contained in:
Lars Weiler
2026-01-06 14:22:22 +01:00
committed by Lars Weiler
parent 95fbedbee9
commit 286ca460eb
+1 -1
View File
@@ -212,7 +212,7 @@ class FiftyOhmHtmlRenderer(HtmlRenderer):
if hasattr(token, "children") and token.children is not None:
for child in token.children:
# Check if this is a Picture, Photo, or Table token
if isinstance(child, (Picture, Photo, Table)):
if isinstance(child, Picture | Photo | Table):
# Get the reference ID (ref for Picture/Photo, name for Table)
ref_id = getattr(child, "ref", None) or getattr(child, "name", None)