contrib: update check-pytype.sh to list stubs that caused pytype to crash
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 23 Nov 2022 20:23:26 -0500
changeset 49651 3e1869751cfe
parent 49650 2e34ea45aaea
child 49652 03792c1ed341
contrib: update check-pytype.sh to list stubs that caused pytype to crash The same logic is in the TortoiseHg tests for running pytype, and it's useful to know if a new version of pytype is better or worse.
contrib/check-pytype.sh
--- a/contrib/check-pytype.sh	Wed Nov 23 16:11:20 2022 -0500
+++ b/contrib/check-pytype.sh	Wed Nov 23 20:23:26 2022 -0500
@@ -70,3 +70,6 @@
     -x mercurial/wireprotoframing.py \
     -x mercurial/wireprotov1peer.py \
     -x mercurial/wireprotov1server.py
+
+echo 'pytype crashed while generating the following type stubs:'
+find .pytype/pyi -name '*.pyi' | xargs grep -l '# Caught error' | sort