Taragolis commented on code in PR #25248:
URL: https://github.com/apache/airflow/pull/25248#discussion_r932015431
##########
airflow/utils/helpers.py:
##########
@@ -376,3 +376,16 @@ def is_empty(x):
return new_list
else:
return val
+
+
+def resolve_property_value(obj, prop):
+ """Return class property value.
+
+ :param obj: Reference to class.
+ :param prop: Reference to class property.
+ :returns: If ``prop`` property than return property value,
+ otherwise it returns class attribute value.
+ """
+ if isinstance(prop, property):
+ return prop.fget(obj)
+ return prop
Review Comment:
Sorry for confuse you. Initially I think you mean add some implementation
`__serialized_fields` in BatchOperator.
Now I understand what you mean place in `serialized_objects` module.
--
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]