-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Regression: crash in initialize_unix_colors in 0.920 #11768
Comments
There is no |
So it seems like The weird thing is I'm not seeing any relevant changes between 0.910 and 0.920 |
Looking at the source code (https://github.com/python/cpython/blob/3.9/Modules/_cursesmodule.c#L4152), |
I suspect that this started causing issues since mypyc only recently started type checking |
I'll submit a PR to typeshed. |
Fixes python/mypy#11768. I reviewed all the function definitions in https://github.com/python/cpython/blob/3.9/Modules/_cursesmodule.c#L4152 and checked their types. I did not review the constants or the methods on the Window object.
seeing this as well. Python 3.10.1+ (heads/3.10:99c7232, Dec 8 2021, 17:39:30) [GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> python.el: native completion setup loaded
>>> import curses
>>> curses.tigetstr('bold')
>>> print(curses.tigetstr('bold'))
None same for other calls in >>> curses.tigetstr('bold')
>>> curses.tigetstr('smul')
>>> curses.tigetstr('setaf')
>>> curses.tigetstr('cup') |
this can be easily reproduced by setting
(perhaps this issue title can be changed to reflect that this is |
To help with python#11768 We'll also need to cherry pick python#11781
To help with python#11768 We'll also need to cherry pick python#11781
Solves #11768 in the 0.930 branch Found by python/typeshed#6620 Co-authored-by: hauntsaninja <> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
i think this issue can be closed since 0.921 (just released) fixes it |
Yup, should be fixed in 0.921 and 0.930. |
Confirming fixed for me in 0.921. Cheers! |
Bug Report
As of 0.920, running mypy as an emacs compile command raises the following error:
Reverting to 0.910 resolves the issue.
This may be a dependency or packaging issue - switching between 0.910 and 0.920 also causes toml to be updated from 0.10.2 to 2.0.0.
Python 3.9.7
Poetry 1.1.12
The text was updated successfully, but these errors were encountered: