Commit bc83a11
committed
docs: say what compile() does, not what add() did
The note left by the expansion commit read "compile() runs inference
against everything the members import", which puts the emphasis in the
wrong place and invites the reading that compile resolves imports. It
does not: it unions exactly the shape collections of the listed members
and resolves nothing. Verified -- the number of shape collections equals
the number of members, for import_depth=-1 and =0 alike.
A dependency is compiled against only when it is itself a member, which
add() arranges by expanding imports; add(..., import_depth=0) leaves them
genuinely absent. Comment, explanation page, wording only.1 parent a687089 commit bc83a11
2 files changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| |||
0 commit comments