File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ Here's a quick example of what stubtest can do:
72
72
Stub: at line 1
73
73
builtins.int
74
74
Runtime:
75
- hello, stubtest
75
+ ' hello, stubtest'
76
76
77
77
78
78
Usage
@@ -86,7 +86,14 @@ is installed in the same environment as the library to be tested. In some
86
86
cases, setting ``PYTHONPATH `` can help stubtest find the code to import.
87
87
88
88
Similarly, stubtest must be able to find the stubs to be checked. Stubtest
89
- respects the ``MYPYPATH `` environment variable.
89
+ respects the ``MYPYPATH `` environment variable -- consider using this if you
90
+ receive a complaint along the lines of "failed to find stubs".
91
+
92
+ Note that stubtest requires mypy to be able to analyse stubs. If mypy is unable
93
+ to analyse stubs, you may get an error on the lines of "not checking stubs due
94
+ to mypy build errors". In this case, you will need to mitigate those errors
95
+ before stubtest will run. Despite potential overlap in errors here, stubtest is
96
+ not intended as a substitute for running mypy directly.
90
97
91
98
If you wish to ignore some of stubtest's complaints, stubtest supports a
92
99
pretty handy allowlist system.
You can’t perform that action at this time.
0 commit comments