Closed Sachaa-Thanasius closed 6 months ago
Regarding the remaining points:
python -m pytest
for py3.8-3.12 locally will be enough on my end for now.@Gorialis
On a tangential note: it was mentioned in the related issue that the inline import feature should pass "the litmus test" on 3.8-3.12, but in the overall tracking issue for the next release (#212), it was also mentioned that jishaku would get a bump to 3.10. Is the latter still true, and if so, do I only have to care about this being compatible with 3.10+?
Since ioistired is back, I'll close this PR once upstream has been fixed.
Rationale
import_expression
is effectively unmaintained and isn't functional on python3.12 (according the issue linked below). The new logic should be functional on 3.8+.Closes #228.
Summary of changes made
Adds a token stream transformer and AST transformer and incorporates them into a parse function with the same signature as
ast.parse
to achieve a similar end result toimport_expression.parse
. Also added tests, mostly sourced fromimport_expression
and modified to account for the different and much smaller API surface.Checklist