Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2026

Bumps astlab from 0.4.3 to 0.5.2.

Release notes

Sourced from astlab's releases.

v0.5.2

New Features

  • Support for Python Version Customization
    • Introduce the PythonVersion enum to provide flexibility in specifying the desired Python version for the project's runtime.

Improvements

  • AST Generation Simplification
    • Modifications made to AST builder, default AST resolver, type loader, and annotator to adjust their behavior based on the specified Python version. This allows for generating AST code optimized for versions older than the current runtime (e.g., using astlab for Python 3.14 while generating code for Python 3.10).

v0.5.1

New Features

  • Union Type Support (Python >= 3.10)
    • Introduces support for union types in the project, enabling more flexible type handling.

Improvements

  • AST Inspector Union Case
    • Modifies the AST inspector to return t.Optional[T] instead of t.Union[T, None].
  • AST Builders Refactor
    • Implemented TypeDefinitionBuilder to improve TypeRefBuilder.
    • Added _normalize_type_ref and incorporated it in builders for normalizing type references.
    • Improved type inspector support for literal and union types.
  • Test Case Refactor
    • Moved test cases related to types and builders to respective files (case_types.py, case_builder.py) using the pytest-case-provider plugin.
  • Builder Test Cases Improvement
    • Fixed Ruff issues in builder test cases.
  • AST Builders Bug Fixes
    • Various improvements and bug fixes to address issues introduced by new features in AST builders.
  • Fix Indented Flag in parse_module function
    • Corrected the parse_module function for proper handling of indented flag.
  • Compatibility Fix
    • Omitted union type support for Python 3.9 to maintain compatibility with older versions.

v0.5.0

Release Notes

New Features

  • Added type alias AST builder with full support for defining and rendering TypeAlias constructs.
  • Introduced type variable (TypeVar) and enum support within the AST model.
  • Implemented comprehensive handling of type variables and aliases across all Python versions (<3.12 and ≥3.12).
  • Enabled forward reference resolution in AST generation, limited to Python 3.14 and above.

Improvements

  • Enhanced TypeLoader error reporting for clearer diagnostics.

  • Refactored DefaultASTResolver to use DFS post-order traversal and partially support forward references.

  • Simplified and improved ASTResolver interface:

    • Removed Expr from TypeRef alias.
    • Introduced a dedicated TypeExpr alias.

... (truncated)

Commits
  • 0d69b28 fix union type annotation for python 3.10 & 3.11
  • a8c2b0a support python version customization
  • 552d249 fix default ast resolver in union case support (python < 3.14)
  • 7cd0cc0 Bump the dev-dependencies group across 1 directory with 2 updates
  • a774041 use nox for project tools run against all supported python versions
  • 253aa23 fix test cases feature markers
  • 1539c2b fix ruff
  • 3a2b887 improve type inspector union case
  • 53f403d refactor AST types tests
  • af4ff4b improve builder test cases (fix ruff issues)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 1, 2026
Bumps [astlab](https://github.com/zerlok/astlab) from 0.4.3 to 0.5.2.
- [Release notes](https://github.com/zerlok/astlab/releases)
- [Commits](zerlok/astlab@v0.4.3...v0.5.2)

---
updated-dependencies:
- dependency-name: astlab
  dependency-version: 0.5.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added python Pull requests that update python code dependencies Pull requests that update a dependency file labels Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant