ruff
[ty] Add subtyping between Callable types and class literals with `__init__`
#17638
Merged

[ty] Add subtyping between Callable types and class literals with `__init__` #17638

MatthewMckee4
MatthewMckee4 Add initial subtyping with for class literals with init
65699131
MatthewMckee4 MatthewMckee4 changed the title [red-knot] Add initial subtyping with for class literals with init [red-knot] Add subtyping with for class literals with init 243 days ago
MatthewMckee4 Small refactor
a648a133
github-actions
MatthewMckee4
dhruvmanila dhruvmanila added ty
MatthewMckee4 Refactor
9bb69c4d
MatthewMckee4 Merge branch 'main' into class-literal-init-callable-subtyping
4b2bbe4b
MatthewMckee4 MatthewMckee4 marked this pull request as ready for review 234 days ago
MatthewMckee4 MatthewMckee4 requested a review from carljm carljm 234 days ago
MatthewMckee4 MatthewMckee4 requested a review from AlexWaygood AlexWaygood 234 days ago
MatthewMckee4 MatthewMckee4 requested a review from sharkdp sharkdp 234 days ago
MatthewMckee4 MatthewMckee4 requested a review from dcreager dcreager 234 days ago
MatthewMckee4 MatthewMckee4 changed the title [red-knot] Add subtyping with for class literals with init [red-knot] Add subtyping with for class literals with `__init__` 234 days ago
AlexWaygood AlexWaygood changed the title [red-knot] Add subtyping with for class literals with `__init__` [red-knot] Add subtyping between Callable types and class literals with `__init__` 234 days ago
MatthewMckee4
MatthewMckee4 commented on 2025-05-04
MatthewMckee4 Fix variable name
e106e272
MatthewMckee4
MatthewMckee4 commented on 2025-05-04
MatthewMckee4 Update tests
5248d097
MatthewMckee4 Update tests
fc157839
MatthewMckee4 Correct return type of new
35e7efa7
MatthewMckee4 Correct return type of new
36455c0b
MatthewMckee4 Add test with call, new and init
89c2fd01
MatthewMckee4
AlexWaygood AlexWaygood closed this 234 days ago
AlexWaygood AlexWaygood reopened this 234 days ago
carljm
carljm commented on 2025-05-09
MatthewMckee4 Merge branch 'main' into class-literal-init-callable-subtyping
0df5734a
MatthewMckee4 Fix concrete value of self
f6055f31
MatthewMckee4 Move into_callable to ClassType
35d5b148
MatthewMckee4 Add test for callable with SubclassOf type
b7fc2904
MatthewMckee4 Remove test
504bfd4f
MichaReiser MichaReiser changed the title [red-knot] Add subtyping between Callable types and class literals with `__init__` [ty] Add subtyping between Callable types and class literals with `__init__` 226 days ago
MatthewMckee4
carljm
MatthewMckee4
carljm Merge branch 'main' into class-literal-init-callable-subtyping
c1bb91dc
carljm update for latest main
8466781f
carljm another assignability test
084a338e
carljm carljm force pushed from 4aa33be2 to 084a338e 210 days ago
carljm fix ecosystem cases with type
3c416c3f
carljm
carljm approved these changes on 2025-05-28
carljm carljm merged c60b4d7f into main 210 days ago
AlexWaygood
AlexWaygood commented on 2025-05-29
MatthewMckee4 MatthewMckee4 deleted the class-literal-init-callable-subtyping branch 179 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone