Skip to content

Commit 1fc0cb2

Browse files
authored
Merge pull request #3 from codemuse-app/fix-133
Uses resolved imports for module names
2 parents ffc6f3e + 0ad4dd1 commit 1fc0cb2

File tree

13 files changed

+97
-13
lines changed

13 files changed

+97
-13
lines changed

packages/pyright-scip/snapshots/input/nested_import/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def baz_function():
2+
pass
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def mod_function():
2+
pass
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def toc_function():
2+
pass
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from .bar.baz import baz_function
2+
from bar.mod import mod_function
3+
from src.bar.toc import toc_function
4+
5+
baz_function()
6+
mod_function()
7+
toc_function()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# < definition scip-python python snapshot-util 0.1 /__init__:
2+
#documentation (module)
3+
4+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# < definition scip-python python snapshot-util 0.1 `src.bar.baz`/__init__:
2+
#documentation (module) src.bar.baz
3+
4+
def baz_function():
5+
# ^^^^^^^^^^^^ definition snapshot-util 0.1 `src.bar.baz`/baz_function().
6+
# documentation ```python
7+
# > def baz_function(): # -> None:
8+
# > ```
9+
pass
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# < definition scip-python python snapshot-util 0.1 `src.bar.mod`/__init__:
2+
#documentation (module) src.bar.mod
3+
4+
def mod_function():
5+
# ^^^^^^^^^^^^ definition snapshot-util 0.1 `src.bar.mod`/mod_function().
6+
# documentation ```python
7+
# > def mod_function(): # -> None:
8+
# > ```
9+
pass
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# < definition scip-python python snapshot-util 0.1 `src.bar.toc`/__init__:
2+
#documentation (module) src.bar.toc
3+
4+
def toc_function():
5+
# ^^^^^^^^^^^^ definition snapshot-util 0.1 `src.bar.toc`/toc_function().
6+
# documentation ```python
7+
# > def toc_function(): # -> None:
8+
# > ```
9+
pass
10+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# < definition scip-python python snapshot-util 0.1 `src.foo`/__init__:
2+
#documentation (module) src.foo
3+
4+
from .bar.baz import baz_function
5+
# ^^^^^^^^ reference snapshot-util 0.1 `src.bar.baz`/__init__:
6+
# ^^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.baz`/baz_function().
7+
from bar.mod import mod_function
8+
# ^^^^^^^ reference snapshot-util 0.1 `src.bar.mod`/__init__:
9+
# ^^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.mod`/mod_function().
10+
from src.bar.toc import toc_function
11+
# ^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.toc`/__init__:
12+
# ^^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.toc`/toc_function().
13+
14+
baz_function()
15+
#^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.baz`/baz_function().
16+
mod_function()
17+
#^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.mod`/mod_function().
18+
toc_function()
19+
#^^^^^^^^^^^ reference snapshot-util 0.1 `src.bar.toc`/toc_function().
20+

0 commit comments

Comments
 (0)