File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,14 @@ check on the command line:
136
136
(.venv3)$ python3 tests/stubtest_third_party.py Pillow toml # check stubs/Pillow and stubs/toml
137
137
```
138
138
139
+ If you have the runtime package installed in your local virtual environment, you can also run stubtest
140
+ directly, with
141
+ ```
142
+ (.venv3)$ MYPYPATH=<path-to-module-stubs> python3 -m mypy.stubtest \
143
+ --custom-typeshed-dir <path-to-typeshed> \
144
+ <third-party-module>
145
+ ```
146
+
139
147
For each distribution, stubtest ignores definitions listed in a ` @tests/stubtest_allowlist.txt ` file,
140
148
relative to the distribution. Additional packages that are needed to run stubtest for a
141
149
distribution can be added to ` @tests/requirements-stubtest.txt ` .
You can’t perform that action at this time.
0 commit comments