You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Tooling, CI, & Tests] Upgrade to python 3.13 & fix related bugs (#60)
* First pass upgrading representer and CI to python 3.13 with tooling changes.
* Renamed run tests in docker job
* Renamed run tests in docker job
* Due to AST changes in Python 3.13, re-recorded stests for repo. This adds new Python 3.13 representation files for all tests.
* Adding back run.sh - accidentially deleted.
* Added legacy test folders to gitignore.
* Added str type guard for md5 hash function to prevent it being passed the Ellipsis object. Updated parse params from python 11.5 to 13.5.
* Added clean_up_normalization function and call to add pass to function bodies that bbecome empty when the docstring is removed.
* - Added fix_missing_bodies method to parse the AST and add [Pass()] anywhere there was an empty list for the function or class body.
This corrects an error where the normalization that removes docstrings then produces invalid code where the docstring was
the only valid expression for the class or function.
- Added documentation notes for upcomming AST object depriciations in Python 3.14. Alsot commented specifically in the import list.
- Modified the AssAssign visitor to insert an assigned value of None where a node had an AnnAssign without a value.
This covers the bug where a DataClass or other Class or Function has its tupehint removed, but had no default value when written.
Dataclasses and other parsing steps at runtime assign these values, but the written code does not. Our normalization process
removes the typehint, so produces invalid code. Assigning the value to None during parsing avoids this probblem.
Since normalization is for grouping purposes only and does not produce executable code, this was considered a valid change.
* Modified and added test casees. Regenerated golden files to accomodated code changes and new cases.
* Annotated test file and reran goldent results for Python 3.13.
* Added new test case for class normalization and created golden files for tests.
* Added new scenarios for datatclasses and recreated golden test file.
0 commit comments