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

Support for auto creation of type declaration file? #77

Open
Peeeaje opened this issue Feb 22, 2024 · 1 comment
Open

Support for auto creation of type declaration file? #77

Peeeaje opened this issue Feb 22, 2024 · 1 comment

Comments

@Peeeaje
Copy link

Peeeaje commented Feb 22, 2024

print() has decent explanation when used as lsp. (Though the description seems to be wrong)
image

open() shows type information but doesn't show function exmplanation, and csv.reader() doesn't show anything.

I guess type declaration file has to be created in advance, the draft is created by program and if you want to add description you need to do that manually now. (These files are defined here: https://github.com/erg-lang/erg/tree/ca88e82c9f1186ddbfcd625d4bdb1f7dcc998ffb/crates/erg_compiler/lib/pystd)

If creating/updating them and fetching docs from original function realizes it would be pretty awesome.

@Peeeaje
Copy link
Author

Peeeaje commented Feb 22, 2024

It seems that pllyzer is creating type declaration file for my creating function, so doing the same for imported functions and fetching docs is needed for that?

image

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

1 participant