changeset 49651:3e1869751cfe

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 23 Nov 2022 20:23:26 -0500
parents 2e34ea45aaea
children 03792c1ed341
files contrib/check-pytype.sh
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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