-
Notifications
You must be signed in to change notification settings - Fork 768
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
Python curses module on Windows is never allowed to autocomplete #2763
Comments
Although the type stub files for There's no mention of For what it's worth, I'm working on a side-project that uses |
Recently |
@TheStef56, thanks for the heads up. I just updated the typeshed stubs in pyright. Pylance will pick those up the next time it syncs with pyright. |
This issue has been fixed in prerelease version 2024.4.101, which we've just released. You can find the changelog here: CHANGELOG.md |
Environment data
Expected behavior
Autocompletion for the
curses
module should work on Windows, to support libraries likewindows-curses
.Actual behavior
Autocompletion for the
curses
module doesn't work.Code Snippet / Additional information
This can be replicated simply by importing the
curses
module and typing a dot after it:After ctrl+clicking the
curses
import to get to its__init__.py
file, there are multiple problems telling me that things aren't defined:After ctrl+clicking the
_curses
import at the top of the init file, I see that anything in thecurses
module is only defined ifsys.platform
is not Windows:I've installed
windows-curses
via pip and everything runs as it should, but I can't get autocompletion without removing the conditional.The text was updated successfully, but these errors were encountered: