[ty] Respect kw_only overwrites in dataclasses by sharkdp · Pull Request #23930 · astral-sh/ruff (original) (raw)
Multi-file analysis & type inference
label
carljm added a commit that referenced this pull request
- main: (94 commits)
Fix shell injection via
shell=Truein subprocess calls (#23894) [ty] Refactorrelation.rsto store state on a struct rather than passing around 7 arguments every time we recurse (#23837) Don't return code actions for non-Python documents (#23905) [ty] Make the default database truly statically infallible (#23929) [ty] AddDownloadbutton to ty playground which creates a zip export (#23478) [ty] Respectkw_onlyoverwrites in dataclasses (#23930) [ty] Clarify in diagnostics thatfrom __future__ import annotationsonly stringifies type annotations (#23928) [ty] Add aCopy Markdownbutton to playground (#23002) [ty] Fix folding range classification of lines starting with#(#23831) [ty] Fix folding ranges for notebooks (#23830) [ty] fix too-many-cycle panics when inferring literal type loop variables (#23875) AddRegularCallableTypeOfandinto_regular_callableinty_extensions(#23909) [ty] treat properties as full structural types (#23925) [ty] Avoid duplicated work during multi-inference (#23923) [ty]: makepossibly-missing-attributeignored by default [ty]: split outpossibly-missing-submodulefrompossibly-missing-attributeUpdate astral-sh/setup-uv action to v7.5.0 (#23922) [ty] Show truthiness in ConstraintSet display and simplify falsy error message (#23913) Bump 0.15.6 (#23919) [ty] Narrow type context during collection literal inference (#23844) ...
sharkdp added a commit that referenced this pull request
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
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 }})