From bf5907c68d0a4ed5f3c2e2ab6e3633742c6010f7 Mon Sep 17 00:00:00 2001 From: ostr00000 Date: Tue, 5 Nov 2024 21:02:58 +0100 Subject: [PATCH] wrap python Union annotation as string annotations --- src/python/qgspythonutilsimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/qgspythonutilsimpl.cpp b/src/python/qgspythonutilsimpl.cpp index 0043791ad391..5109b0eb22f8 100644 --- a/src/python/qgspythonutilsimpl.cpp +++ b/src/python/qgspythonutilsimpl.cpp @@ -69,7 +69,7 @@ class StartupScriptRunner: self.info_messages: list[str] = [] self.warning_messages: list[str] = [] - def run_startup_script(self, script_path: pathlib.Path | str | None) -> bool: + def run_startup_script(self, script_path: 'pathlib.Path | str | None') -> bool: script_executed = False if not script_path: return script_executed