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
vim.fn.getline()
does not accept strings
#90
Comments
The same seems to apply to
|
The annotation are automatically generated based on available info. There's just no correct info available for those methods |
How is the info extracted? Directly from nvim docs? as far as I can see, those doesn't have any annotation info, so are you extracting it from some other place? |
multiple sources. check the code. |
Okay, I have looked into this. If I understand neodev correctly, it guesses argument types of vim functions by the argument name. Neodev gets the function list from
I have checked the vimdocs for all of them. The
These ones don't refer to
These ones don't accept a string as an
So, the point is that it's not that there isn't correct info available, it's just not possible to know the type of Looking through code, I found out that the detailed documentation is already being parsed, so it is possible to detect, whether the doc contains information about how the I have enabled the CI job, that updates the types on my fork. With the updated types, these functions now take strings for
Some functions like The second type of The third type functions' signatures are unchanged. |
get line currently only seems to accept a number as parameter, even though certain strings should also be accepted.
The text was updated successfully, but these errors were encountered: