1
0
forked from VimPlug/jedi

Merge pull request #1800 from Boerde/pytest_improve_fixture_completion

Improve completion for pytest fixtures
This commit is contained in:
Dave Halter
2021-11-16 21:09:35 +01:00
committed by GitHub
4 changed files with 15 additions and 1 deletions

View File

@@ -309,3 +309,8 @@ def annotation2() -> Iterator[float]:
next(annotation1())
#? float()
next(annotation2())
# annotations should override generator inference
#? float()
annotation1()

View File

@@ -64,6 +64,11 @@ def lala(my_fixture):
def lala(my_fixture):
pass
# overriding types of a fixture should be possible
def test_x(my_yield_fixture: str):
#? str()
my_yield_fixture
# -----------------
# completion
# -----------------