11This directory contains several tests:
22- ` tests/mypy_test.py `
33tests the stubs with [ mypy] ( https://github.com/python/mypy/ )
4- - ` tests/pytype_test.py ` tests the stubs with
5- [ pytype] ( https://github.com/google/pytype/ ) .
64- ` tests/pyright_test.py ` tests the stubs with
75[ pyright] ( https://github.com/microsoft/pyright ) .
86- ` tests/regr_test.py ` runs mypy against the test cases for typeshed's
@@ -19,7 +17,7 @@ in the `tests` and `scripts` directories.
1917To run the tests, follow the [ setup instructions] ( ../CONTRIBUTING.md#preparing-the-environment )
2018in the ` CONTRIBUTING.md ` document. In particular, you have to run with Python 3.9+.
2119
22- In order for ` pytype_test ` and ` pyright_test ` to work correctly, some third-party stubs
20+ In order for ` pyright_test ` to work correctly, some third-party stubs
2321may require extra dependencies external to typeshed to be installed in your virtual environment
2422prior to running the test.
2523You can list or install all of a stubs package's external dependencies using the following script:
@@ -67,18 +65,6 @@ imported but doesn't check whether stubs match their implementation
6765Run ` python tests/mypy_test.py --help ` for information on the various configuration options
6866for this script.
6967
70- ## pytype\_ test.py
71-
72- Note: This test cannot be run on Python version < 3.13 as pytype does not yet support
73- Python 3.13 and above.
74-
75- Run using:
76- ``` bash
77- (.venv3)$ python3 tests/pytype_test.py
78- ```
79-
80- This test works similarly to ` mypy_test.py ` , except it uses ` pytype ` .
81-
8268## pyright\_ test.py
8369
8470This test requires [ Node.js] ( https://nodejs.org ) to be installed. Although
0 commit comments