mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-10 05:52:22 +08:00
Implement stub tests and a first iteration of loading them from some random place
This commit is contained in:
1
test/completion/stub_folder/stub_only.pyi
Normal file
1
test/completion/stub_folder/stub_only.pyi
Normal file
@@ -0,0 +1 @@
|
||||
in_stub_only: int
|
||||
2
test/completion/stub_folder/with_stub.py
Normal file
2
test/completion/stub_folder/with_stub.py
Normal file
@@ -0,0 +1,2 @@
|
||||
in_with_stub_both = 5
|
||||
in_with_stub_python = 8
|
||||
2
test/completion/stub_folder/with_stub.pyi
Normal file
2
test/completion/stub_folder/with_stub.pyi
Normal file
@@ -0,0 +1,2 @@
|
||||
in_with_stub_both: str
|
||||
in_with_stub_stub: float
|
||||
11
test/completion/stubs.py
Normal file
11
test/completion/stubs.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from stub_folder import with_stub, stub_only
|
||||
|
||||
#? int()
|
||||
stub_only.in_stub_only
|
||||
|
||||
#? str()
|
||||
with_stub.in_with_stub_both
|
||||
#? int()
|
||||
with_stub.in_with_stub_python
|
||||
#? float()
|
||||
with_stub.in_with_stub_stub
|
||||
Reference in New Issue
Block a user