Skip to content

chore(python-sdk): mark packages as typed (PEP 561)#1363

Open
mishushakov wants to merge 1 commit into
mainfrom
mishushakov/python-untyped-packages
Open

chore(python-sdk): mark packages as typed (PEP 561)#1363
mishushakov wants to merge 1 commit into
mainfrom
mishushakov/python-untyped-packages

Conversation

@mishushakov
Copy link
Copy Markdown
Member

Summary

Add empty py.typed markers to the e2b and e2b_connect packages so mypy/Pyright honor the inline annotations on Sandbox, AsyncSandbox, and other public APIs instead of treating imports as Any. Includes a patch changeset for @e2b/python-sdk.

Test plan

  • pip install the built wheel in a fresh env and confirm mypy no longer reports e2b as untyped without --follow-untyped-imports.

🤖 Generated with Claude Code

Add empty py.typed markers to the e2b and e2b_connect packages so
mypy/Pyright honor the inline annotations instead of treating imports
as Any.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 28, 2026

🦋 Changeset detected

Latest commit: a1cce8b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@e2b/python-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor
Copy link
Copy Markdown

cursor Bot commented May 28, 2026

PR Summary

Low Risk
Packaging-only typing markers with no changes to runtime, auth, or data handling.

Overview
Adds PEP 561 py.typed marker files to the e2b and e2b_connect packages so installed wheels are treated as typed. Type checkers (mypy, Pyright) should then use existing annotations on public APIs like Sandbox / AsyncSandbox instead of widening imports to Any.

Includes a patch changeset for @e2b/python-sdk; no runtime or API behavior changes.

Reviewed by Cursor Bugbot for commit a1cce8b. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 087e52d. Download artifacts from this workflow run.

JS SDK (e2b@2.27.1-mishushakov-python-untyped-packages.0):

npm install ./e2b-2.27.1-mishushakov-python-untyped-packages.0.tgz

CLI (@e2b/cli@2.10.3-mishushakov-python-untyped-packages.0):

npm install ./e2b-cli-2.10.3-mishushakov-python-untyped-packages.0.tgz

Python SDK (e2b==2.25.0+mishushakov-python-untyped-packages):

pip install ./e2b-2.25.0+mishushakov.python.untyped.packages-py3-none-any.whl

@mishushakov mishushakov enabled auto-merge (squash) June 4, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant