Skip to content

Apply ruff Python 3.11 fixes to providers - #74155

Open
shahar1 wants to merge 1 commit into
drop-py310/4-ruff-core-sdkfrom
drop-py310/5-ruff-providers
Open

shahar1 wants to merge 1 commit into
drop-py310/4-ruff-core-sdkfrom
drop-py310/5-ruff-providers

Conversation

@shahar1

@shahar1 shahar1 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

As titled - this applies ruff Python 3.11 fixes to providers.

related: #74148

AI Summary Output of `ruff check --fix` with the py311 target for `providers/`: `timezone.utc` → `datetime.UTC` (UP017), `typing_extensions` → `typing` (UP035), `asyncio.TimeoutError` → `TimeoutError` (UP041). Mechanical, no behaviour change.

Stack

Layer 5 of 9 of the Python 3.10 drop (supersedes #74144, which carried the whole change in one PR). Each layer is meant to be green on its own: the script metadata bump comes first because prek picks the hook interpreter from it, and the ruff fixes land before the requires-python bump because ruff infers its target per distribution from the nearest pyproject.toml.

  1. Drop Python 3.10 from CI, Breeze and the container images
  2. Bump inline script metadata to Python 3.11
  3. Remove Python 3.10 compatibility shims
  4. Apply ruff Python 3.11 fixes to core, Task SDK, shared and airflowctl
  5. Apply ruff Python 3.11 fixes to providers
  6. Apply ruff Python 3.11 fixes to dev tooling, scripts and test suites
  7. Require Python 3.11 in all distributions
  8. Update provider READMEs for the Python 3.11 baseline
  9. Update docs for the Python 3.11 baseline

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5.1)

Generated-by: Claude Code (Fable 5.1) following the guidelines

@shahar1
shahar1 force-pushed the drop-py310/5-ruff-providers branch from 24372e2 to 99d23b5 Compare October 3, 2026 13:07
@shahar1
shahar1 added this pull request to stack #74160 October 3, 2026 13:08
@shahar1 shahar1 mentioned this pull request Oct 3, 2026
1 task done
@shahar1
shahar1 force-pushed the drop-py310/5-ruff-providers branch from 99d23b5 to 89a8f9a Compare October 3, 2026 13:38
@shahar1
shahar1 marked this pull request as ready for review October 3, 2026 13:54
Output of ruff --fix with the py311 target for the providers:
timezone.utc becomes datetime.UTC, typing_extensions imports move to
typing and asyncio.TimeoutError becomes the builtin alias. No
behaviour change.
@shahar1
shahar1 force-pushed the drop-py310/5-ruff-providers branch from 47427b4 to 12755a0 Compare October 3, 2026 20:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant