fix: replace ast.Str and drop astor#5850
Conversation
fa54bba to
2fe6224
Compare
|
@lafirm Can you check the failed ci test? Also, do you think it's worth considering a brief changelog/release note: python_env payloads feed model data_hash, so users with Python macros may see a one-time fingerprint change on upgrade (e.g. lambda : → lambda:)? |
Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
|
sure, I've added a file to migrate the existing rows - hopefully that fixes the CI test. Please let me know where do you want to have this change log (though I already have left a comment in this PR and added a doc string in the migration file) |
Description
Closes #5837
pyproject.tomlastorfrom dependencies and mypy overrides inpyproject.toml, usingast.unparseintroduced in Python 3.9astor.to_sourcecalls withast.unparseinsqlmesh/core/model/common.pyandsqlmesh/utils/metaprogramming.pyTest Plan
tests/utils/test_metaprogramming.pyto match the output format ofast.unparse.Checklist
make styleand fixed any issuesmake fast-test)git commit -s) per the DCO