Skip to content

Commit

Permalink
Extends resolve_xcom_backend function level documentation (#24965)
Browse files Browse the repository at this point in the history
* # This is a combination of 2 commits.
# This is the 1st commit message:

Extends resolve_xcom_backend documentation
# This is the commit message #2:

properly stylize XCom

* Extends resolve_xcom_backend documentation

properly stylize XCom

Final docstring update

Extends resolve_xcom_backend documentation

properly stylize XCom

Final docstring update

* Stylistic changes
  • Loading branch information
Frank Cash authored Jul 11, 2022
1 parent ed70b69 commit 178af9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion airflow/models/xcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,11 @@ def _get_function_params(function) -> List[str]:


def resolve_xcom_backend() -> Type[BaseXCom]:
"""Resolves custom XCom class"""
"""Resolves custom XCom class
Confirms that custom XCom class extends the BaseXCom.
Compares the function signature of the custom XCom serialize_value to the base XCom serialize_value.
"""
clazz = conf.getimport("core", "xcom_backend", fallback=f"airflow.models.xcom.{BaseXCom.__name__}")
if not clazz:
return BaseXCom
Expand Down

0 comments on commit 178af9d

Please sign in to comment.