Skip to content

Conversation

@DouweM
Copy link
Collaborator

@DouweM DouweM commented Sep 30, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 30, 2025

Docs Preview

commit: 5a4ed2c
Preview URL: https://c0c327d4-pydantic-ai-previews.pydantic.workers.dev

@DouweM DouweM self-assigned this Oct 1, 2025
@DouweM DouweM changed the title Bump Pyright Bump Pyright and Ruff Oct 1, 2025
dsfaccini and others added 5 commits December 9, 2025 12:06
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]>
@DouweM
Copy link
Collaborator Author

DouweM commented Dec 10, 2025

@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?

@dsfaccini
Copy link
Collaborator

yessir
image

@dsfaccini
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants