-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Python curses module on Windows is never allowed to autocomplete #2763
Copy link
Copy link
Closed
Labels
fixed in next version (pyright)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming versionskip-reassignOptional label that tells the issue automation bot to not reassign the ownerOptional label that tells the issue automation bot to not reassign the owner
Description
Environment data
- Language Server version: 2022.4.3
- OS and version: Windows 10 Home, 21H2
- Python version): 3.10.2
Expected behavior
Autocompletion for the curses module should work on Windows, to support libraries like windows-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 the curses module is only defined if sys.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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fixed in next version (pyright)A fix has been implemented and will appear in an upcoming versionA fix has been implemented and will appear in an upcoming versionskip-reassignOptional label that tells the issue automation bot to not reassign the ownerOptional label that tells the issue automation bot to not reassign the owner



