Commit 8ef2197
authored
[mypyc] Loading type from imported modules. (python#18158)
Fixes [python#1075](mypyc/mypyc#1075)
Previously, this compiled but failed to run:
```python
import collections
from typing_extensions import TypedDict
class C(TypedDict):
x: collections.deque
```
Although type of `x` was being inferred correctly, it was not looking
for `collections.deque` in imported modules.1 parent 35048bf commit 8ef2197
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
809 | 814 | | |
810 | 815 | | |
811 | 816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
79 | 92 | | |
80 | 93 | | |
81 | 94 | | |
| |||
0 commit comments