Skip to content

Upgrade tests and tooling to Python 3.13#1

Open
BethanyG wants to merge 13 commits intomainfrom
upgrade-to-python-3.13
Open

Upgrade tests and tooling to Python 3.13#1
BethanyG wants to merge 13 commits intomainfrom
upgrade-to-python-3.13

Conversation

@BethanyG
Copy link
Owner

No description provided.

BethanyG added 13 commits July 18, 2025 17:01
…adds new Python 3.13 representation files for all tests.
… the Ellipsis object. Updated parse params from python 11.5 to 13.5.
…n bodies that bbecome empty when the docstring is removed.
…nywhere 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant