mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 12:16:15 +08:00
## Summary Fixes astral-sh/ty#5035. When targeting Python 3.12 or earlier, infer covariance for read-only fields on Pydantic models frozen through a class keyword or `ConfigDict`. Use the same setter lookup as assignment checking so a custom `__setattr__` keeps the model invariant. On Python 3.13 and later, the synthesized `__replace__` still makes these models invariant.
mdtests with external dependencies
This directory contains mdtests that make use of external packages. See the mdtest README.md for
more information.