From 6ce43eda1d520c97b77ba3202df77c5bb73fc66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20de=20Menten?= Date: Thu, 5 Oct 2023 12:07:12 +0200 Subject: [PATCH] FIX: silence spurious warning on Python 3.11 (closes #263) --- larray_editor/editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/larray_editor/editor.py b/larray_editor/editor.py index 6ed17a7..ca7f706 100644 --- a/larray_editor/editor.py +++ b/larray_editor/editor.py @@ -382,6 +382,10 @@ def _setup_and_check(self, widget, data, title, readonly, stack_pos=None, add_la self.arraywidget.model_data.dataChanged.connect(self.update_title) if qtconsole_available: + # silence a warning on Python 3.11 (see issue #263) + if "PYDEVD_DISABLE_FILE_VALIDATION" not in os.environ: + os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1" + # Create an in-process kernel kernel_manager = QtInProcessKernelManager() kernel_manager.start_kernel(show_banner=False)