mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-23 09:19:39 +00:00
## Summary * Add initial support for `typing.dataclass_transform` * Support decorating a function decorator with `@dataclass_transform(…)` (used by `attrs`, `strawberry`) * Support decorating a metaclass with `@dataclass_transform(…)` (used by `pydantic`, but doesn't work yet, because we don't seem to model `__new__` calls correctly?) * *No* support yet for decorating base classes with `@dataclass_transform(…)`. I haven't figured out how this even supposed to work. And haven't seen it being used. * Add `strawberry` as an ecosystem project, as it makes heavy use of `@dataclass_transform` ## Test Plan New Markdown tests |
||
|---|---|---|
| .. | ||
| build-binaries.yml | ||
| build-docker.yml | ||
| ci.yaml | ||
| daily_fuzz.yaml | ||
| daily_property_tests.yaml | ||
| mypy_primer.yaml | ||
| mypy_primer_comment.yaml | ||
| notify-dependents.yml | ||
| pr-comment.yaml | ||
| publish-docs.yml | ||
| publish-knot-playground.yml | ||
| publish-playground.yml | ||
| publish-pypi.yml | ||
| publish-wasm.yml | ||
| release.yml | ||
| sync_typeshed.yaml | ||