Commit 5a4c1be
committed
Avoid restricting the star-import surface; re-export via aliases
Review feedback: the module-level __all__ added previously would have
replaced Python's implicit star-import behavior and dropped previously
exported names (SessionMessageOrError, DEFAULT_RECONNECTION_DELAY_MS,
etc.) for any `from mcp.client.streamable_http import *` consumer. Drop
__all__ and mark the re-exports with redundant aliases instead, which is
additive only — the star-import surface is unchanged apart from the newly
exported names.
Refs #32381 parent f9bde3a commit 5a4c1be
1 file changed
Lines changed: 4 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 44 | | |
64 | 45 | | |
65 | 46 | | |
| |||
0 commit comments