Shunsuke Shibayama
6f8f7506b4
[ty] fix infinite recursion bug in is_disjoint_from ( #18043 )
...
## Summary
I found this bug while working on #18041 . The following code leads to
infinite recursion.
```python
from ty_extensions import is_disjoint_from, static_assert, TypeOf
class C:
@property
def prop(self) -> int:
return 1
static_assert(not is_disjoint_from(int, TypeOf[C.prop]))
```
The cause is a trivial missing binding in `is_disjoint_from`. This PR
fixes the bug and adds a test case (this is a simple fix and may not
require a new test case?).
## Test Plan
A new test case is added to
`mdtest/type_properties/is_disjoint_from.md`.
2025-05-12 09:44:00 -04:00
..
2025-05-10 11:59:25 +02:00
2025-05-09 17:39:15 +01:00
2025-05-08 14:10:35 +01:00
2025-05-03 19:49:15 +02:00
2025-05-06 20:11:25 -04:00
2025-05-09 13:40:51 -04:00
2025-05-06 20:11:25 -04:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-09 14:54:05 -04:00
2025-05-03 19:49:15 +02:00
2025-05-09 13:40:51 -04:00
2025-05-06 20:11:25 -04:00
2025-05-09 17:39:15 +01:00
2025-05-09 17:39:15 +01:00
2025-05-09 13:40:51 -04:00
2025-05-09 14:57:14 -04:00
2025-05-09 17:39:15 +01:00
2025-05-03 19:49:15 +02:00
2025-05-09 17:39:15 +01:00
2025-05-03 19:49:15 +02:00
2025-05-09 17:39:15 +01:00
2025-05-03 19:49:15 +02:00
2025-05-12 13:31:42 +02:00
2025-05-06 20:11:25 -04:00
2025-05-09 17:39:15 +01:00
2025-05-03 19:49:15 +02:00
2025-05-06 20:11:25 -04:00
2025-05-12 09:44:00 -04:00
2025-05-03 19:49:15 +02:00
2025-05-06 20:11:25 -04:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-09 17:39:15 +01:00
2025-05-05 12:12:38 -07:00
2025-05-07 15:51:13 +02:00
2025-05-06 20:11:25 -04:00
2025-05-09 13:40:51 -04:00
2025-05-06 20:11:25 -04:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-06 12:37:10 +01:00
2025-05-06 20:11:25 -04:00
2025-05-08 20:36:20 -07:00
2025-05-10 10:46:08 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-09 13:40:51 -04:00
2025-05-09 17:39:15 +01:00
2025-05-03 19:49:15 +02:00
2025-05-09 14:57:14 -04:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-06 20:11:25 -04:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00