[ty] Respect kw_only overwrites in dataclasses by sharkdp · Pull Request #23930 · astral-sh/ruff (original) (raw)

@sharkdp

@sharkdp sharkdp added the ty

Multi-file analysis & type inference

label

Mar 13, 2026

AlexWaygood

carljm added a commit that referenced this pull request

Mar 13, 2026

@carljm

sharkdp added a commit that referenced this pull request

Mar 13, 2026

@sharkdp

Summary

Similar in spirit to #23930. This is the last remaining place (I think) where we determined the presence of dataclass parameters in a way that did not account for defaults that were set on the model base.

Test Plan

New Markdown tests

KotlinIsland pushed a commit to KotlinIsland/basedpython that referenced this pull request

May 1, 2026

@sharkdp

Summary

Similar in spirit to astral-sh/ruff#23930. This is the last remaining place (I think) where we determined the presence of dataclass parameters in a way that did not account for defaults that were set on the model base.

Test Plan

New Markdown tests

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})