[`red-knot`] Allow subclasses of Any to be assignable to Callable types #17717
carljm
requested changes
on 2025-04-29
Kalmaegi
marked this pull request as draft 227 days ago
Kalmaegi
marked this pull request as ready for review 227 days ago
Kalmaegi
marked this pull request as draft 227 days ago
Allow subclasses of Any to be assignable to all types
1d0b090f
adjust logic
3b3f6444
adjust comment
fe1864a5
add missing '!' in final type check
afb9c5f8
add red_knot test for Subclasses of Any should be assignable to Callable
2b76f640
adjust red_knot test for Subclasses of Any should be assignable to Ca…
eb9cd7d0
improve Any assignment check for final and literal types
b1ed9e44
remove blank line
3b0f5907
add comments
d64135b2
fmt
5bd55ca3
fmt
3abac678
fmt
de1cc577
sharkdp
force pushed
from
af5630d2
to
46d6758a
226 days ago
sharkdp
marked this pull request as ready for review 226 days ago
Various minor fixes
7fa57675
sharkdp
force pushed
from
46d6758a
to
7fa57675
226 days ago
sharkdp
approved these changes
on 2025-05-01
sharkdp
changed the title [`red-knot`] Allow subclasses of Any to be assignable to all types [`red-knot`] Allow subclasses of Any to be assignable to Callable types 226 days ago
sharkdp
merged
76ec64d5
into main 226 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub