Crash - AstroidError under Python 3.12.0a7; raise_if_nothing_inferred #8804
Labels
Duplicate 🐫
Duplicate of an already existing issue
python 3.12
Upstream Bug 🪲
Bug in a dependency of pylint that is not astroid
Bug description
Pylint 2.17.4 fatally crashes when checking the following minimal reproducer under Python 3.12.0a7:
Version information:
Other information:
I am seeing this crash on production code that checks fine under mypy/pylint from Python 3.7 through 3.11 inclusive; it's only under Python 3.12 that pylint alone crashes. This reproducer is as small as I could get it while still seeing the crash. I unfortunately couldn't find a minimal reproducer for code that I believed "should work"; the code in question that prompted this bug report can be found at https://gitlab.com/qemu-project/python-qemu-qmp/-/blob/main/qemu/qmp/protocol.py
(If you clone the repo and have Python 3.12 available and type "make check-tox", you should be able to see it fail on the production code for yourself.)
Configuration
No response
Command used
`pylint reproducer.py`
Pylint output
OS / Environment
Fedora 38
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: