# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1702924848 10800
#      Mon Dec 18 15:40:48 2023 -0300
# Node ID 05ce07bdb173870a0a3765f3761b6304fef4d7c9
# Parent  d91b55371d6fcf653e629060360ff08c7315b83c
pytype: update check-pytype.sh to select target automatically

We have python3.11 on CI, so we can run pytype targeting that version. On the
other hand, we don't have python3.7 on CI anymore, so we can't run pytype for
3.7 anymore (interpreter not found). I think it's fine to make pytype select
the appropriate target depending on the version of the interpreter it's running
under.

diff --git a/contrib/check-pytype.sh b/contrib/check-pytype.sh
--- a/contrib/check-pytype.sh
+++ b/contrib/check-pytype.sh
@@ -71,7 +71,7 @@
 
 # TODO: include hgext and hgext3rd
 
-pytype -V 3.7 --keep-going --jobs auto \
+pytype --keep-going --jobs auto \
     doc/check-seclevel.py hgdemandimport hgext mercurial \
     -x hgext/absorb.py \
     -x hgext/bugzilla.py \