Skip to content

Can't figure out "unknown import symbol" #2408

Answered by erictraut
ronf asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for posting. This is a bug in pyright's import resolution logic. In particular, it's related to the case where a chain of imports (where one module imports a symbol from another module, which imports it from another module, etc.) ends in a native library (a ".pyd" or ".so" binary file). Pyright should resolve this without errors and supply an "Unknown" type for the symbol. This will be fixed in the next release.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ronf
Comment options

@mchccc
Comment options

Answer selected by ronf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants