From 286ca460ebd22317b5a6760b54c5052f6a705fdb Mon Sep 17 00:00:00 2001 From: Lars Weiler Date: Tue, 6 Jan 2026 13:54:50 +0100 Subject: [PATCH] fix: use PEP 604 syntax so that the old Ruff will be happy (can be changed when we switch to a newer Ruff later) --- renderer/fifty_ohm_html_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/fifty_ohm_html_renderer.py b/renderer/fifty_ohm_html_renderer.py index e896004..4132691 100644 --- a/renderer/fifty_ohm_html_renderer.py +++ b/renderer/fifty_ohm_html_renderer.py @@ -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)