Skip to content

[flake8-pyi] Stabilize autofix for future-annotations-in-stub (PYI044) #18518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 8, 2025

Conversation

dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Jun 6, 2025

No description provided.

@dylwil3 dylwil3 requested a review from AlexWaygood as a code owner June 6, 2025 23:05
@dylwil3 dylwil3 added rule Implementing or modifying a lint rule fixes Related to suggested fixes for violations labels Jun 6, 2025
Copy link
Contributor

github-actions bot commented Jun 6, 2025

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+0 -0 violations, +8 -0 fixes in 2 projects; 53 projects unchanged)

apache/airflow (+0 -0 violations, +4 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

+ airflow-core/src/airflow/migrations/db_types.pyi:19:1: PYI044 [*] `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
- airflow-core/src/airflow/migrations/db_types.pyi:19:1: PYI044 `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
+ task-sdk/src/airflow/sdk/definitions/decorators/__init__.pyi:21:1: PYI044 [*] `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
- task-sdk/src/airflow/sdk/definitions/decorators/__init__.pyi:21:1: PYI044 `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics

bokeh/bokeh (+0 -0 violations, +4 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

+ src/typings/selenium/webdriver/common/action_chains.pyi:1:1: PYI044 [*] `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
- src/typings/selenium/webdriver/common/action_chains.pyi:1:1: PYI044 `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
+ src/typings/selenium/webdriver/remote/webelement.pyi:1:1: PYI044 [*] `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics
- src/typings/selenium/webdriver/remote/webelement.pyi:1:1: PYI044 `from __future__ import annotations` has no effect in stub files, since type checkers automatically treat stubs as having those semantics

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
PYI044 8 0 0 8 0

Linter (preview)

✅ ecosystem check detected no linter changes.

@dylwil3 dylwil3 added this to the v0.12 milestone Jun 6, 2025
@dylwil3 dylwil3 merged commit 1385720 into brent/release-0.12.0 Jun 8, 2025
34 checks passed
@dylwil3 dylwil3 deleted the dylan/stabilize-autofix-future branch June 8, 2025 18:05
@dylwil3 dylwil3 mentioned this pull request Jun 8, 2025
2 tasks
ntBre pushed a commit that referenced this pull request Jun 8, 2025
ntBre pushed a commit that referenced this pull request Jun 8, 2025
ntBre pushed a commit that referenced this pull request Jun 9, 2025
ntBre pushed a commit that referenced this pull request Jun 10, 2025
ntBre pushed a commit that referenced this pull request Jun 11, 2025
ntBre pushed a commit that referenced this pull request Jun 17, 2025
ntBre pushed a commit that referenced this pull request Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants