Replies: 1 comment
-
Before going all the way an LSP, I would try type-checking with pyright or mypy. (Or even both, since they generate different errors that are often quite useful to track down problems). Likely there is some fault with the stubs that causes the LSP to fall back to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question related to generic python stub file and LSP.
Test code:
Langue server shows
utils.parse_assembly(asm_str)
returnsunknown_type
, but it should return aModule
type.Package structure:
utils.py
(the content of other.py
files are similar):utils.pyi
:Language server cannot infer
llvmpym_ext.core.Module
correctly. When editing, the docs for that function generated by language server shows the result type isunknown
(basedpyright
andpyright
are tested).Nor can the following code work:
Nor can this:
However, language server can get typed information when classes are in the same file like this:
Beta Was this translation helpful? Give feedback.
All reactions