uranusjr commented on code in PR #42814:
URL: https://github.com/apache/airflow/pull/42814#discussion_r1802501075
##########
airflow/assets/__init__.py:
##########
@@ -272,10 +277,10 @@ def _set_extra_default(extra: dict | None) -> dict:
class Asset(os.PathLike, BaseAsset):
"""A representation of data dependencies between workflows."""
- name: str = attr.field()
- uri: str = attr.field()
- group: str = attr.field()
- extra: dict[str, Any] = attr.field()
+ name: str
Review Comment:
It’s more like because `attr.define` is smart enough to know these are
fields automatically. As long as the fields don’t have arguments, the
assignment can be omitted.
--
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]