Repository navigation
Commit 84006d9
fix(typing): re-export OutputCollector from the function modules
The documented examples import OutputCollector from the function-base
modules (e.g. `from vgi.table_in_out_function import OutputCollector`,
`from vgi.table_buffering_function import OutputCollector`). That works at
runtime, but downstream projects type-checking with `mypy --strict` got:
Module "vgi.table_in_out_function" does not explicitly export attribute
"OutputCollector" [attr-defined]
because the name was only imported from vgi_rpc.rpc, not listed in
__all__. Add OutputCollector to __all__ in table_in_out_function and
table_buffering_function (vgi.table_function already exported it), and in
copy_from_function, whose abstract read() hook also receives an
OutputCollector (moving its import out of the TYPE_CHECKING block so the
re-export exists at runtime).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent d9f7875 commit 84006d9
3 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments