Replace ast.Ellipsis with ast.Constant #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue with Python 3.14
[....] > self = <pscript.commonast.NativeAstConverter object at 0x7ffff48143d0> > n = Constant(value='a', kind=None) > > def _convert_index_like(self, n): > c = self._convert > > if isinstance(n, (ast.Slice, ast.Index, ast.ExtSlice, ast.Ellipsis)): > ^^^^^^^^^^^^ > E AttributeError: module 'ast' has no attribute 'Ellipsis' > > pscript/commonast.py:1035: AttributeError > =========================== short test summary info ============================ > FAILED tests/test_commonast.py::test_consistent_ast1 - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser1.py::TestExpressions::test_indexing_and_slicing - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser1.py::TestExpressions::test_assignments - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser1.py::TestExpressions::test_dict_literals - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser1.py::TestExpressions::test_funcion_call - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser1.py::TestExpressions::test_delete - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser2.py::TestConrolFlow::test_for - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser2.py::TestConrolFlow::test_listcomp_regressions - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser3.py::TestOtherBuiltins::test_repr - AttributeError: module 'ast' has no attribute 'Ellipsis' > FAILED tests/test_parser3.py::TestDictMethods::test_copy - AttributeError: module 'ast' has no attribute 'Ellipsis' > ================ 10 failed, 213 passed, 1 deselected in 31.37s ================= ``