Skip to content

Commit dcfd595

Browse files
committed
[red-knot] Add support for import conventions
1 parent 1f7a29d commit dcfd595

File tree

9 files changed

+830
-99
lines changed

9 files changed

+830
-99
lines changed

crates/red_knot_python_semantic/resources/mdtest/import/conditional.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def coinflip() -> bool:
9595
return True
9696

9797
if coinflip():
98-
from c import f
98+
from c import f as f
9999
else:
100100
def f(): ...
101101
```
@@ -125,7 +125,7 @@ def coinflip() -> bool:
125125
return True
126126

127127
if coinflip():
128-
from c import x
128+
from c import x as x
129129
else:
130130
x = 1
131131
```

0 commit comments

Comments
 (0)