mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
[tests/pytype_test.py](./tests/pytype_test.py#L176) is still using Python `3.6`: > python_version="2.7" if version == 2 else "3.6", The test fails to run if `python3.6` is unavailable (for example on Debian 10 Buster, which has 3.7). According to (https://devguide.python.org/#status-of-python-branches `3.6` is still maintained until end of 2021. `pytype` itself [claims](https://github.com/google/pytype#requirements) to run on `2.7`, `3.5`-`3.8`. Change the script to use the version of Python from the invoking interpreter.