Commit Graph

190 Commits

Author SHA1 Message Date
github-actions[bot] 602cc2d51f [skip ci] Release new versions 2026-02-24 20:53:45 +00:00
github-actions[bot] f922884447 [skip ci] Release new versions 2026-02-21 02:00:30 +00:00
Mish Ushakov c38a1819b6 Fix Python SDK type issues with ty type checker (#1122)
## Summary
- Resolved 43 type diagnostics reported by ty (Astral's Python type
checker)
- Fixed Self type issues on class singletons
- Added explicit type annotations for shadowed attributes
- Replaced None with UNSET for auto-generated API parameters
- Fixed method signature alignment for protocol matching
- Added targeted type: ignore suppressions for pattern-based limitations

All checks pass: ty check, ruff format, ruff check.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Mostly typing/CI changes, but some adjustments affect sandbox
connect/pause overload dispatch and API response/parameter handling
(`UNSET` vs `None`), which could alter edge-case runtime behavior.
> 
> **Overview**
> Fixes Python SDK static typing issues for Astral’s `ty` checker and
wires typechecking into CI.
> 
> Adds a new `Typecheck` GitHub Action plus workspace `typecheck`
scripts (TS packages via `tsc`, Python SDK via `make typecheck` running
`ty`), and publishes a patch changeset for `@e2b/python-sdk`.
> 
> Across the Python SDK, adjusts type annotations and overloads (e.g.,
`Self`/singleton typing, `connect` overloads, optional
`user`/token/domain handling), tightens API model parsing with
`cast`/`Optional` checks and `UNSET` usage, and adds a few targeted `ty`
ignore comments in tests/protocols to silence checker limitations.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f66402847c40cee7e44e1aaa7caa97e271ba9978. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-02-12 16:23:39 +00:00
github-actions[bot] e11378c8c6 [skip ci] Release new versions 2026-02-09 19:28:29 +00:00
github-actions[bot] 12c8d6e6e1 [skip ci] Release new versions 2026-02-09 13:02:58 +00:00
github-actions[bot] cf549f8487 [skip ci] Release new versions 2026-01-29 19:28:47 +00:00
github-actions[bot] b2ea21c77f [skip ci] Release new versions 2026-01-29 15:55:59 +00:00
github-actions[bot] 168d9edbab [skip ci] Release new versions 2026-01-27 22:38:55 +00:00
github-actions[bot] 3993a17189 [skip ci] Release new versions 2026-01-27 14:06:56 +00:00
github-actions[bot] be538de3e8 [skip ci] Release new versions 2026-01-26 18:09:49 +00:00
github-actions[bot] 2081fb9ee9 [skip ci] Release new versions 2026-01-15 16:45:17 +00:00
github-actions[bot] e77bda6a5a [skip ci] Release new versions 2026-01-12 13:23:45 +00:00
github-actions[bot] a7a7b6da01 [skip ci] Release new versions 2026-01-12 10:42:51 +00:00
github-actions[bot] 4f8b13b9d1 [skip ci] Release new versions 2026-01-09 22:42:20 +00:00
github-actions[bot] 6e07b3b000 [skip ci] Release new versions 2025-12-22 18:02:47 +00:00
github-actions[bot] f561fc463c [skip ci] Release new versions 2025-12-01 15:49:40 +00:00
github-actions[bot] 4b770a1c6b [skip ci] Release new versions 2025-11-26 17:36:25 +00:00
github-actions[bot] a4852e19a9 [skip ci] Release new versions 2025-11-15 22:54:49 +00:00
github-actions[bot] 45d782f346 [skip ci] Release new versions 2025-11-10 12:04:04 +00:00
github-actions[bot] 111fe06fe0 [skip ci] Release new versions 2025-11-06 16:04:39 +00:00
github-actions[bot] 5cea08ffbe [skip ci] Release new versions 2025-11-03 15:45:13 +00:00
github-actions[bot] 02f34a293a [skip ci] Release new versions 2025-11-03 11:35:01 +00:00
github-actions[bot] 63d6453eae [skip ci] Release new versions 2025-10-31 12:29:43 +00:00
github-actions[bot] 2703721441 [skip ci] Release new versions 2025-10-28 17:10:46 +00:00
github-actions[bot] 70487f007e [skip ci] Release new versions 2025-10-28 11:14:31 +00:00
github-actions[bot] 97a72597c5 [skip ci] Release new versions 2025-10-24 22:45:09 +00:00
github-actions[bot] 865a8f8d18 [skip ci] Release new versions 2025-10-24 21:36:48 +00:00
github-actions[bot] cb7464d2e4 [skip ci] Release new versions 2025-10-22 19:31:53 +00:00
github-actions[bot] 115e73b5a1 [skip ci] Release new versions 2025-10-22 09:44:35 +00:00
github-actions[bot] eb2dfd4bff [skip ci] Release new versions 2025-10-21 14:59:48 +00:00
github-actions[bot] 5df9090f57 [skip ci] Release new versions 2025-10-20 22:16:19 +00:00
github-actions[bot] 04f3a1e036 [skip ci] Release new versions 2025-10-18 17:46:41 +00:00
github-actions[bot] 538283691d [skip ci] Release new versions 2025-10-17 23:46:29 +00:00
github-actions[bot] d009507128 [skip ci] Release new versions 2025-10-16 23:25:59 +00:00
github-actions[bot] ace327e948 [skip ci] Release new versions 2025-10-16 11:50:51 +00:00
github-actions[bot] 75f5a473e5 [skip ci] Release new versions 2025-10-14 21:05:31 +00:00
github-actions[bot] ebb3f08039 [skip ci] Release new versions 2025-10-14 10:07:23 +00:00
github-actions[bot] 5b7b3f6a25 [skip ci] Release new versions 2025-10-09 20:55:56 +00:00
github-actions[bot] e5ffc79f7a [skip ci] Release new versions 2025-10-09 12:52:02 +00:00
github-actions[bot] fff1ea1173 [skip ci] Release new versions 2025-10-09 08:45:10 +00:00
github-actions[bot] d7bc0a31d4 [skip ci] Release new versions 2025-10-08 23:00:33 +00:00
github-actions[bot] c4ce97e9b9 [skip ci] Release new versions 2025-10-01 12:45:57 +00:00
github-actions[bot] 25526ff928 [skip ci] Release new versions 2025-09-29 12:53:44 +00:00
github-actions[bot] 138f85dd07 [skip ci] Release new versions 2025-09-19 19:03:53 +00:00
github-actions[bot] 8255ba42c0 [skip ci] Release new versions 2025-09-19 10:40:39 +00:00
github-actions[bot] 9cbcaa40c4 [skip ci] Release new versions 2025-09-09 19:57:39 +00:00
github-actions[bot] bee91610dc [skip ci] Release new versions 2025-09-06 10:58:21 +00:00
github-actions[bot] 9d82bd60fc [skip ci] Release new versions 2025-09-05 20:06:19 +00:00
github-actions[bot] 2162c6191f [skip ci] Release new versions 2025-09-03 12:49:17 +00:00
github-actions[bot] 787a3192ce [skip ci] Release new versions 2025-09-03 12:01:10 +00:00