ruff
[ty] Support `@classmethod` and `@staticmethod` protocol members
#26331
Open

[ty] Support `@classmethod` and `@staticmethod` protocol members #26331

charliermarsh
astral-sh-bot astral-sh-bot added ty
charliermarsh charliermarsh force pushed from f94a50c7 to 2b1d82c9 6 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from fe5b312f to 6a4d154a 6 days ago
astral-sh-bot
astral-sh-bot
astral-sh-bot
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 6a4d154a to 3ecc9e25 6 days ago
charliermarsh charliermarsh force pushed from 28a6e0f8 to 2a7943db 6 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from f14590d0 to 68f78835 6 days ago
charliermarsh charliermarsh force pushed from 2a7943db to d3424164 6 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 68f78835 to 03ebd607 6 days ago
charliermarsh charliermarsh force pushed from d3424164 to 0b9d0b63 6 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 900a0972 to 8cc09bf0 6 days ago
charliermarsh charliermarsh force pushed from 0b9d0b63 to d1111c4f 6 days ago
codspeed-hq
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 8cc09bf0 to cd03c38e 6 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from efe20744 to de7f2392 5 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 5c6e1ad5 to dde55603 5 days ago
charliermarsh charliermarsh force pushed from d1111c4f to f8556ecb 5 days ago
mtshiba [ty] Implement protocol property check
3027ee9f
charliermarsh Refactor
91da9479
charliermarsh Fix property setter accepting Any; custom descriptor whose __set__ re…
c1ec12a8
charliermarsh Fix lack of self binding
cae29510
charliermarsh [ty] Adapt protocol property checks to current main
2c134ea1
charliermarsh [ty] Model protocol member access capabilities
ef6d6f7e
charliermarsh [ty] Resolve protocol property types lazily
76561488
charliermarsh [ty] Avoid eager protocol property checks
635be313
charliermarsh [ty] Derive protocol member capabilities from member kind
a0a372ef
charliermarsh [ty] Accept class and static method protocol implementations
945aedd3
charliermarsh [ty] Bind explicitly typed protocol property getters
d055d09d
charliermarsh [ty] Defer annotated self protocol members
dae2b1b2
charliermarsh [ty] Avoid expensive class-object property checks
ee69b089
charliermarsh [ty] Clarify ClassVar protocol member capabilities
3258f620
charliermarsh [ty] Document attribute write resolution
cfe86da6
charliermarsh [ty] Simplify protocol attribute write handling
2de21b91
charliermarsh [ty] Ignore property setter return types for protocols
0930197d
charliermarsh [ty] Name protocol member access modes
68664b8a
charliermarsh [ty] Encode protocol member type states
3eed75e3
charliermarsh [ty] Pre-resolve instance attribute writes
1e96f955
charliermarsh [ty] Restore portable NumPy mdtest expectation
c483a427
charliermarsh [ty] Bind Self in protocol member assignments
2a72f760
charliermarsh [ty] Bind Self in property setters
63670f33
charliermarsh [ty] Preserve relations for descriptor writes
6c9f05b0
charliermarsh [ty] Preserve relations for setattr writes
ad8848fe
charliermarsh [ty] Include mutable attributes in protocol disjointness
f52e780d
charliermarsh [ty] Avoid duplicate protocol method constraints
bda6e06b
charliermarsh [ty] Preserve recursive protocol method cycles
1a9c59e0
charliermarsh [ty] Widen literals for protocol property writes
71bbeff1
charliermarsh [ty] Avoid writes for unsupported protocol methods
1f76c02d
charliermarsh [ty] Expand hydra-zen diagnostic cap
138b02b1
charliermarsh [ty] Document protocol member access semantics
4b1c95e6
charliermarsh Move attribute assignment validation into builder module
0a8498a3
charliermarsh [ty] Distribute union writes across descriptor overloads
8f86bcff
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from dde55603 to 8f86bcff 5 days ago
charliermarsh [ty] Support class and static protocol methods
d55d1ee2
charliermarsh [ty] Preserve Self in overloaded protocol methods
c61c4bed
charliermarsh [ty] Bind Self through decorated protocol methods
b8cced27
charliermarsh [ty] Recognize wrapped class and static methods
a34e98eb
charliermarsh [ty] Compare class protocol methods as bound
cf12531f
charliermarsh charliermarsh force pushed from f8556ecb to cf12531f 5 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 8f86bcff to 385851c0 5 days ago
charliermarsh charliermarsh force-pushed the charlie/protocol-property-check-2 branch from 385851c0 to 0e47141c 5 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone