Skip to content

Conversation

@Lee-W
Copy link
Contributor

@Lee-W Lee-W commented Sep 24, 2025

Summary

airflow.datasets.DatasetEvent has been removed in 3 but AssetEvent might be added in the future

Test Plan

update the test fixture and reorg in the second commit

@Lee-W Lee-W changed the title feat(AIR301): add airflow.datasets.DatasetEvent [airflow] add warning to airflow.datasets.DatasetEvent usage (AIR301) Sep 24, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just one nit on the phrasing. More generally, is this an actionable lint for users? It's not really clear (to me at least) how they should respond if the replacement isn't available yet. A few options that come to mind:

  • Don't mention the future replacement
  • Mention an alternative that can be used now
  • Wait on adding this lint until the replacement is available

@ntBre ntBre added the rule Implementing or modifying a lint rule label Sep 25, 2025
@Lee-W
Copy link
Contributor Author

Lee-W commented Sep 25, 2025

We can suggest users to use dict[str, Any] for the time being. and then add the replacement at a later point. WDYT?

I'm good with holding it as well :) it's not that urgent

@ntBre
Copy link
Contributor

ntBre commented Sep 29, 2025

Sure, dict[str, Any] sounds good to me! Or we can hold off for now, whichever you prefer :)

@Lee-W
Copy link
Contributor Author

Lee-W commented Oct 6, 2025

Just updated it! Merging it early would be cool, but I'm fine if we decide to wait. We should be able to have it in the next airflow task SDK release.

@ntBre
Copy link
Contributor

ntBre commented Oct 15, 2025

Sounds good, I'm happy to merge this and update it again later :) Thank you!

@ntBre ntBre changed the title [airflow] add warning to airflow.datasets.DatasetEvent usage (AIR301) [airflow] Add warning to airflow.datasets.DatasetEvent usage (AIR301) Oct 15, 2025
@ntBre ntBre merged commit d2a6ef7 into astral-sh:main Oct 15, 2025
37 checks passed
@Lee-W Lee-W deleted the dataset-event branch October 16, 2025 02:59
dcreager added a commit that referenced this pull request Oct 16, 2025
…rable

* origin/main:
  Don't use codspeed or depot runners in CI jobs on forks (#20894)
  [ty] cache Type::is_redundant_with (#20477)
  Fix run-away for mutually referential instance attributes (#20645)
  [ty] Limit shown import paths to at most 5 unless ty runs with `-v` (#20912)
  [ty] Use field-specifier return type as the default type for the field (#20915)
  [ty] Do not assume that `field`s have a default value (#20914)
  [ty] Fix match pattern value narrowing to use equality semantics (#20882)
  Update setup instructions for Zed 0.208.0+ (#20902)
  Move TOML indent size config (#20905)
  [syntax-errors]: implement F702 as semantic syntax error (#20869)
  [ty] Heterogeneous unpacking support for unions (#20377)
  [ty] refactor `Place` (#20871)
  Auto-accept snapshot changes as part of typeshed-sync PRs (#20892)
  [`airflow`] Add warning to `airflow.datasets.DatasetEvent` usage (`AIR301`) (#20551)
  [`flake8-pyi`] Fix operator precedence by adding parentheses when needed (`PYI061`) (#20508)
  [`pyupgrade`] Fix false negative for `TypeVar` with default argument in `non-pep695-generic-class` (`UP046`) (#20660)
  Update parser snapshots (#20893)
  Fix syntax error false positives for escapes and quotes in f-strings (#20867)
dcreager added a commit that referenced this pull request Oct 16, 2025
…nt-sets

* dcreager/non-non-inferable:
  Don't use codspeed or depot runners in CI jobs on forks (#20894)
  [ty] cache Type::is_redundant_with (#20477)
  Fix run-away for mutually referential instance attributes (#20645)
  [ty] Limit shown import paths to at most 5 unless ty runs with `-v` (#20912)
  [ty] Use field-specifier return type as the default type for the field (#20915)
  [ty] Do not assume that `field`s have a default value (#20914)
  [ty] Fix match pattern value narrowing to use equality semantics (#20882)
  Update setup instructions for Zed 0.208.0+ (#20902)
  Move TOML indent size config (#20905)
  [syntax-errors]: implement F702 as semantic syntax error (#20869)
  [ty] Heterogeneous unpacking support for unions (#20377)
  [ty] refactor `Place` (#20871)
  Auto-accept snapshot changes as part of typeshed-sync PRs (#20892)
  [`airflow`] Add warning to `airflow.datasets.DatasetEvent` usage (`AIR301`) (#20551)
  [`flake8-pyi`] Fix operator precedence by adding parentheses when needed (`PYI061`) (#20508)
  [`pyupgrade`] Fix false negative for `TypeVar` with default argument in `non-pep695-generic-class` (`UP046`) (#20660)
  Update parser snapshots (#20893)
  Fix syntax error false positives for escapes and quotes in f-strings (#20867)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants