-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Bump Pyright and Ruff #3049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Bump Pyright and Ruff #3049
Conversation
Docs Preview
|
# Conflicts: # pydantic_ai_slim/pydantic_ai/_run_context.py
Merge main into bump-pyright branch to get latest changes. Conflicts resolved: - pydantic_ai_slim/pydantic_ai/_output.py - pydantic_ai_slim/pydantic_ai/_utils.py - pydantic_ai_slim/pydantic_ai/ag_ui.py (took main's refactored version) - pydantic_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py - pydantic_ai_slim/pydantic_ai/models/__init__.py - pydantic_ai_slim/pydantic_ai/models/fallback.py - tests/models/mock_openai.py - uv.lock Updated versions: - pyright: 1.1.405 -> 1.1.407 - ruff: 0.13.2 -> 0.14.8 Note: 589 pyright errors remain to be fixed (this is expected - the purpose of this branch is to bump pyright and fix the resulting type errors).
Fixes pyright errors by using typed factories like `list[str]` instead of untyped `list` in dataclass field default_factory arguments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add inline ignores for complex type covariance issues with Task tuples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
@dsfaccini I worry about all the merge conflicts and linter failures this will cause in currently open PRs that are fine now, but will break once they merge in main, or worse: when we merge the PRs into main and main will break. So let's merge this just before the Christmas break when there will be less activity anyway, and then everyone can fix their PRs once they're back to work in January. Will you remind me? |
|
after we merge #3778 I don't think the burden of resolving conflicts will make sense here, simply syncing and re-locking caught a bunch of the type issues, so I'd much rather bump pyright and ruff in a new branch after we merge 3778. |

No description provided.