ruff
6be0a505 - [red-knot] Disjointness for callable types (#17094)

Commit
171 days ago
[red-knot] Disjointness for callable types (#17094) ## Summary Part of #15382, this PR adds support for disjointness between two callable types. They are never disjoint because there exists a callable type that's a subtype of all other callable types: ```py (*args: object, **kwargs: object) -> Never ``` The `Never` is a subtype of every fully static type thus a callable type that has the return type of `Never` means that it is a subtype of every return type. ## Test Plan Add test cases related to mixed parameter kinds, gradual form (`...`) and `Never` type.
Author
Parents
Loading