Commit 066da4d
authored
Add Pep561 tests for stub-only package with namespace packages (#11141)
This only adds tests that show the current behavior when we provide a stub-only package for a subpackage of a namespace package
Proposals for behavior changes exist in python/typeshed#5800
Real world example is the `protobuf` package which installs to `google.protobuf` and the `types-protobuf` package which installs to `google-stubs/protobuf` (where `google` is a namespace package)1 parent df827c9 commit 066da4d
File tree
19 files changed
+88
-17
lines changed- mypy/test
- test-data
- packages
- modulefinder-site-packages
- ns_pkg_w_stubs-stubs/typed
- ns_pkg_w_stubs
- typed_inline
- typed
- untyped
- typedpkg_ns_a
- typedpkg_ns
- a
- typedpkg_ns_b-stubs
- typedpkg_ns-stubs/b
- typedpkg_ns_b
- typedpkg_ns
- b
- unit
19 files changed
+88
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
187 | 194 | | |
188 | 195 | | |
189 | 196 | | |
| |||
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
242 | 256 | | |
243 | 257 | | |
244 | 258 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
Whitespace-only changes.
0 commit comments