Skip to content

Commit

Permalink
Remove Context-related functions from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Dec 17, 2021
1 parent e5e56a2 commit b3b780f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airflow/utils/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def context_copy_partial(source: Context, keys: Container[str]) -> "Context":
This is implemented as a free function because the ``Context`` type is
"faked" as a ``TypedDict`` in ``context.pyi``, which cannot have custom
functions.
:meta private:
"""
new = Context({k: v for k, v in source._context.items() if k in keys})
new._deprecation_replacements = source._deprecation_replacements.copy()
Expand All @@ -219,6 +221,8 @@ def lazy_mapping_from_context(source: Context) -> Mapping[str, Any]:
This is implemented as a free function because the ``Context`` type is
"faked" as a ``TypedDict`` in ``context.pyi``, which cannot have custom
functions.
:meta private:
"""

def _deprecated_proxy_factory(k: str, v: Any) -> Any:
Expand Down

0 comments on commit b3b780f

Please sign in to comment.