ruff
[ty] Infer nested classes as read-only attributes
#29346
Merged

[ty] Infer nested classes as read-only attributes #29346

carljm merged 14 commits into main from cjm/read-only-nested-classes
carljm
carljm carljm added bug
carljm carljm added ty
carljm carljm added bug
carljm carljm added ty
astral-sh-bot
astral-sh-bot
astral-sh-bot
codspeed
carljm carljm force pushed from a713e7fa to 17761500 31 days ago
carljm carljm force pushed from 17761500 to 13bec418 31 days ago
carljm carljm marked this pull request as ready for review 31 days ago
carljm carljm requested a review 31 days ago
astral-sh-bot astral-sh-bot requested a review from ibraheemdev ibraheemdev 31 days ago
carljm
carljm carljm force pushed from 13bec418 to 1ba05bce 31 days ago
carljm carljm removed review request from ibraheemdev ibraheemdev 31 days ago
carljm carljm requested a review from AlexWaygood AlexWaygood 31 days ago
Base automatically changed from cjm/typevar-attribute-writes to main 31 days ago
carljm carljm force pushed from 1ba05bce to de50d5e9 31 days ago
carljm carljm marked this pull request as draft 31 days ago
epenet
carljm carljm force pushed from de50d5e9 to 0cfc3472 19 days ago
astral-automations-bot
astral-automations-bot
astral-automations-bot
ngnpope
carljm
carljm carljm force pushed from 14593684 to 606508f9 5 days ago
carljm carljm changed the base branch from main to cjm/descriptor-write-contracts 5 days ago
carljm carljm force pushed from 606508f9 to d404d383 5 days ago
carljm carljm marked this pull request as ready for review 4 days ago
ngnpope
Base automatically changed from cjm/descriptor-write-contracts to main 3 days ago
carljm [ty] Infer nested classes as read-only attributes
742a3978
carljm carljm force pushed from d404d383 to 742a3978 3 days ago
AlexWaygood
AlexWaygood commented on 2026-11-11
carljm [ty] Simplify writes to conditional nested descriptors and clarify at…
df313404
carljm carljm requested a review from sharkdp sharkdp 3 days ago
sharkdp
sharkdp commented on 2026-11-12
carljm [ty] Consolidate and clarify nested class attribute tests
35c762b0
sharkdp
sharkdp approved these changes on 2026-11-12
carljm [ty] Allow writes when a decorator replaces a nested class
1c187410
carljm [ty] Clarify class and instance access to nested descriptors
46eca631
carljm [ty] Explain how the inherited descriptor handles annotated writes
c0250980
carljm [ty] Test metaclass descriptor precedence for nested classes
9c56ea67
carljm [ty] Clarify which nested class overrides are compatible
a37cb169
carljm [ty] Clarify names of invalid protocol implementations in tests
d24bdc84
carljm [ty] Simplify setter values in the nested descriptor protocol test
95935f04
carljm [ty] Clarify when attribute reads widen class literals
d66bbd48
carljm [ty] Return the instance attribute write requirement directly
14ca64ae
carljm [ty] Borrow resolved members when checking instance writes
f676e9b6
carljm Merge main and reconcile nested classes with qualifier inference
c2d14afc
carljm carljm merged e1ce434f into main 2 days ago
carljm carljm deleted the cjm/read-only-nested-classes branch 2 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone