Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

is it possible to generate .pyi file #96

Closed
C1oud555 opened this issue Mar 10, 2023 · 4 comments
Closed

is it possible to generate .pyi file #96

C1oud555 opened this issue Mar 10, 2023 · 4 comments

Comments

@C1oud555
Copy link

It seems like the LSP needs .pyi file to achieve functions like completion.

@MikePopoloski
Copy link
Owner

Seems like this thread has some info on how to do it: pybind/pybind11#2350

I don't have time to look at this right now but would accept a PR if you figure it out. Otherwise it will have to wait until I have more free time.

@C1oud555
Copy link
Author

I tried mypy's stubgen and pybind11_stubgen. The former works. And simple enough

pip install mypy
stubgen -p pyslang

gives a pretty will result.

@adwait
Copy link

adwait commented Jun 5, 2024

Hi, I tried this but am getting the following error (on version 6.0):

TypeError: (): incompatible function arguments. The following argument types are supported:
    1. () -> pyslang.BufferID

Invoked with: <class 'pyslang.BufferID'>

Which version/commit does it work on? Thanks!

@Esser50K
Copy link

Getting same error as @adwait, I've installed the nightly build to see if the fix is there but doesn't seem like it yet

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

No branches or pull requests

4 participants