Commit 82796df
authored
[ty] add cycle handling to BoundMethodType::into_callable_type() (#20369)
## Summary
This looks like it should fix the errors that we've been seeing in sympy
in recent mypy-primer runs.
## Test Plan
I wasn't able to reproduce the sympy failures locally; it looks like
there is probably a dependency on the order in which files are checked.
So I don't have a minimal reproducible example, and wasn't able to add a
test :/ Obviously I would be happier if we could commit a regression
test here, but since the change is straightforward and clearly
desirable, I'm not sure how many hours it's worth trying to track it
down.
Mypy-primer is still failing in CI on this PR, because it fails on the
"old" ty commit already (i.e. on main). But it passes [on a no-op PR
stacked on top of this](#20370),
which strongly suggests this PR fixes the problem.1 parent dfec946 commit 82796df
File tree
3 files changed
+25
-5
lines changed- crates/ty_python_semantic/src
- types
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8938 | 8938 | | |
8939 | 8939 | | |
8940 | 8940 | | |
| 8941 | + | |
| 8942 | + | |
| 8943 | + | |
| 8944 | + | |
| 8945 | + | |
| 8946 | + | |
| 8947 | + | |
| 8948 | + | |
| 8949 | + | |
| 8950 | + | |
| 8951 | + | |
| 8952 | + | |
| 8953 | + | |
| 8954 | + | |
| 8955 | + | |
| 8956 | + | |
| 8957 | + | |
8941 | 8958 | | |
8942 | 8959 | | |
8943 | 8960 | | |
| |||
8951 | 8968 | | |
8952 | 8969 | | |
8953 | 8970 | | |
8954 | | - | |
| 8971 | + | |
8955 | 8972 | | |
8956 | 8973 | | |
8957 | 8974 | | |
| |||
9089 | 9106 | | |
9090 | 9107 | | |
9091 | 9108 | | |
9092 | | - | |
9093 | | - | |
9094 | | - | |
| 9109 | + | |
| 9110 | + | |
9095 | 9111 | | |
9096 | 9112 | | |
9097 | 9113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments