Lee-W commented on code in PR #45960:
URL: https://github.com/apache/airflow/pull/45960#discussion_r1976828732
##########
airflow/utils/context.py:
##########
@@ -170,106 +149,6 @@ def _get_asset_from_db(name: str | None = None, uri: str
| None = None) -> Asset
return asset.to_public()
-class LazyAssetEventSelectSequence(LazySelectSequence[AssetEvent]):
- """
- List-like interface to lazily access AssetEvent rows.
-
- :meta private:
- """
-
- @staticmethod
- def _rebuild_select(stmt: TextClause) -> Select:
- return select(AssetEvent).from_statement(stmt)
-
- @staticmethod
- def _process_row(row: Row) -> AssetEvent:
- return row[0]
-
-
[email protected](init=False)
-class InletEventsAccessors(Mapping[Union[int, Asset, AssetAlias, AssetRef],
LazyAssetEventSelectSequence]):
- """
- Lazy mapping for inlet asset events accessors.
-
- :meta private:
- """
-
- _inlets: list[Any]
- _assets: dict[AssetUniqueKey, Asset]
- _asset_aliases: dict[AssetAliasUniqueKey, AssetAlias]
- _session: Session
Review Comment:
just added `newsfragments/45960.significant.rst`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]