Description
Rope fails to import _const_node_type_names when running on Python 3.14:
ImportError: cannot import name '_const_node_type_names' from 'ast'
The fallback code asserts sys.version_info < (3, 8), which fails on Python 3.14.
Workaround:
_const_node_type_names = {
bool: "Constant",
type(None): "Constant",
int: "Constant",
float: "Constant",
complex: "Constant",
str: "Constant",
bytes: "Constant",
type(...): "Constant",
}
To Reproduce
Install Python 3.14
Import Rope or run any tool that triggers rope.base.ast
Editor information (please complete the following information):
- Python version: 3.14
- Rope version: 1.13.0