mirror of https://github.com/astral-sh/ruff
## Summary Synthesize a `__setattr__` method with a return type of `Never` for frozen dataclasses. https://docs.python.org/3/library/dataclasses.html#frozen-instances https://docs.python.org/3/library/dataclasses.html#dataclasses.FrozenInstanceError ### Related https://github.com/astral-sh/ty/issues/111 https://github.com/astral-sh/ruff/pull/17974#discussion_r2108527106 https://github.com/astral-sh/ruff/pull/18347#discussion_r2128174665 ## Test Plan New Markdown tests --------- Co-authored-by: David Peter <mail@david-peter.de> |
||
|---|---|---|
| .. | ||
| corpus | ||
| mdtest | ||
| primer | ||
| README.md | ||
README.md
Markdown files within the mdtest/ subdirectory are tests of type inference and type checking;
executed by the tests/mdtest.rs integration test.
See crates/ty_test/README.md for documentation of this test format.