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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user