Commit 5b8435b
fix: restore mcp falsy-check semantics and simplify sandbox_url access
Revert `mcp` from `is not None` check back to truthiness check so
empty dicts are treated as UNSET. Remove unnecessary local alias in
get_sandbox_url and use self._sandbox_url directly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ce1799a commit 5b8435b
3 files changed
Lines changed: 4 additions & 5 deletions
File tree
- packages/python-sdk/e2b
- sandbox_async
- sandbox_sync
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 140 | + | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments