Skip to content

Update Ruff to the December 2 sync - #36

Merged
knutwannheden merged 1 commit into
mainfrom
adapt-ty-types-to-the-december-2-ruff-sync
Dec 2, 2026
Merged

knutwannheden merged 1 commit into
mainfrom
adapt-ty-types-to-the-december-2-ruff-sync

Conversation

@knutwannheden

Copy link
Copy Markdown
Contributor

Pointing ty-types at the December 2 Ruff sync (baa6474331) produces two E0061 compile errors in qualified-name lookup. Ruff's display helper takes an enclosing scope directly. Ruff #30628

The binding collector and the NewType descriptor builder pass definition.scope(db). This keeps qualified names based on the same enclosing scope, including nested definitions such as nt.Outer.Tag. The new Ruff pin also requires a lockfile refresh.

  • All 96 ty-types tests passed with cargo test --locked --profile fast-test.
  • All 305 rewrite-python attribution and binding tests passed against the updated binary.
  • Parsed getStdlibApi output matched the pre-sync binary across 571 modules in the Python 3.13 fixture. The source attribution and library API fixtures matched as well.

Pass the definition's enclosing scope when computing qualified names for
bindings and NewType descriptors. Refresh the lockfile for the new pin.
@knutwannheden knutwannheden self-assigned this Dec 2, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Dec 2, 2026
@knutwannheden
knutwannheden merged commit bf55323 into main Dec 2, 2026
7 checks passed
@knutwannheden
knutwannheden deleted the adapt-ty-types-to-the-december-2-ruff-sync branch December 2, 2026 20:25
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant