From 08ad7406732e5b0397ffb9a1457feff985fe52bb Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Mon, 10 Aug 2026 20:53:13 +0200 Subject: [PATCH] Fix building docs with PyQt6 --- docs/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 643724650..0cf47f0d2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -733,11 +733,12 @@ def qt_docstrings(app, what, name, obj, options, lines): Avoids syntax errors since the Qt threading docstrings are written in Markdown, and injected into rst docstring automatically. """ - ignore_list = ['WorkerBase', 'FunctionWorker', 'GeneratorWorker'] + if not name.startswith('napari.qt'): + return + ignore_list = ['WorkerBase', 'FunctionWorker', 'GeneratorWorker', 'Shadow.from_bytes', 'Shadow.to_bytes', 'Shape.from_bytes', 'Shape.to_bytes'] if any(f in name for f in ignore_list) and len(lines) > 0: del lines[1:] - # -- Docs build setup ------------------------------------------------------