Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Typing/Intelisense Support for external IDE. #20

Open
lks-dev opened this issue Dec 6, 2024 · 1 comment
Open

Typing/Intelisense Support for external IDE. #20

lks-dev opened this issue Dec 6, 2024 · 1 comment

Comments

@lks-dev
Copy link

lks-dev commented Dec 6, 2024

Dear QTM-Dev Team,

On starting to work with the qtm scripting interface, i would like to get some support from my IDE as your package is rather deep.
But i wasn't able to find the source, or other files referencing (.pyi, .rst) the qtm package, that i could provide to my IDE to infer the structure of the package.
Then I tried to autogen typing stubs from but failed, see screenshot.

qtm_stubgen_failed_to_import

So I would like to know if you have, or a planning to release typing stubs for the qtm package?
Or could you maybe point me paths in the installation folder, that would facilitate typing/intelisense?

Thank you!

@Henrik-Norgren
Copy link
Contributor

Hi,

Since the modules aren't implemented in Python, there are no source files available. However, as you mentioned, stub files like .pyi or similar would probably make sense to have bundled with future QTM releases. I haven't looked into this too deeply myself yet, but my colleagues have done something similar in the past, generating stubs based on information retrieved from qtm.utilities.documentation module.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants