more fixes for bundled Qt types

This commit is contained in:
Damien Elmes 2020-06-03 09:55:30 +10:00
parent 08ac2601ed
commit 36de3ff6fd

View file

@ -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)