From 36de3ff6fdac01a22b5cb8d3b93153917aa0fa87 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 3 Jun 2020 09:55:30 +1000 Subject: [PATCH] more fixes for bundled Qt types --- qt/tools/typecheck-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/tools/typecheck-setup.sh b/qt/tools/typecheck-setup.sh index 2c883b167..6d0e937ac 100755 --- a/qt/tools/typecheck-setup.sh +++ b/qt/tools/typecheck-setup.sh @@ -17,4 +17,4 @@ TOOLS="$(cd "`dirname "$0"`"; pwd)" modDir=$(python -c 'import PyQt5, sys, os; sys.stdout.write(os.path.dirname(sys.modules["PyQt5"].__file__))') # fix broken stubs in pyqt5.15.0 release -(cd $modDir && perl -i'' -pe 's/^None =/None_ =/' *.pyi) +(cd $modDir && perl -i'' -pe 's/(\s*None) =/$1_ =/' *.pyi && touch py.typed)