Repository navigation
Upgrade Python dev tooling (mypy 2, ruff 0.17, pytest-asyncio 1) - #28
Merged
Merged
Conversation
Bump dev dependencies in modal_function and the Python package template: - mypy ~=2.4 (was <2) - ruff ~=0.17.2 (was <0.16) - pytest-asyncio ~=1.0 (was <0.22, a pin inherited from sdk-python that the template's tests don't need) - basedpyright ~=1.40 (floor relaxed slightly from 1.40.2) - pydocstyle, pytest-xdist: same ranges, spelled with ~= mypy 2 infers the async-generator yield type in _run_configure as object, so cast it to AsyncGenerator[None, None] before wrapping it in asynccontextmanager. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
harish-narayanappa-10
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
Bump dev dependencies in modal_function and the Python package template:
mypy 2 infers the async-generator yield type in _run_configure as object, so cast it to AsyncGenerator[None, None] before wrapping it in asynccontextmanager.
Why?
This should fix the nightly failures. And while we're here, we may as well clean up/update the dependency versions before the first
modal_functionrelease.Checklist
Had Claude test the different deps configurations (lowest, locked, latest) locally, and it should be clear from CI/future nightly runs whether this works.