Replies: 2 comments 4 replies
-
its not quite clear what you are asking for, the posted code is so incomplete that we cannot infer enough details this seems to be a problem with vscode pytest type handling addons - which are handled by vscode as far as pain python is concerned, your code has no annotations to help at all |
Beta Was this translation helpful? Give feedback.
-
Can you show an actual example demonstrating the issue you see? Here, your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i cannot find a similar problem on google and co. , so i will try my luck here.
Intellisense does not give any suggestions or autofill / autocompletion when passing a fixture with yield or return to test methods.
Hovering over the fixture name in the paramater on a test method reveals that its returning a 'Tuple Generator' but when used in the method then the type is 'any'
Python 3.12.2 is used
pytest-8.0.2, pluggy-1.4.0
pytest plugins im using: asyncio-0.23.6, html-4.1.1, metadata-3.1.1, subtests-0.12.1
Visual Studio Code python plugin: https://marketplace.visualstudio.com/items?itemName=ms-python.python
I could only fix this when explicitly giving p1 and p2 a type, for example:
Any options to fix that or is there no feature for this?
Beta Was this translation helpful? Give feedback.
All reactions