Skip to content

Commit

Permalink
refactor(utils/context): remove redundant iter call
Browse files Browse the repository at this point in the history
Co-authored-by: Tzu-ping Chung <[email protected]>
  • Loading branch information
Lee-W and uranusjr committed Dec 9, 2024
1 parent 7140d60 commit 8183004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/utils/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __str__(self) -> str:
return f"OutletEventAccessors(_dict={self._dict})"

def __iter__(self) -> Iterator[Asset | AssetAlias]:
return iter(
return (
key.to_asset() if isinstance(key, AssetUniqueKey) else key.to_asset_alias() for key in self._dict
)

Expand Down

0 comments on commit 8183004

Please sign in to comment.