more fixes for bundled Qt types

This commit is contained in:
Damien Elmes 2020-06-03 09:55:30 +10:00
parent 56d07fdc49
commit 86689c5e77

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)