Skip to content

Commit

Permalink
Mark serialization functions as internal (#26193)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Sep 7, 2022
1 parent 841d92a commit 5e24323
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion airflow/serialization/serialized_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ def serialize(cls, var: Any) -> Any: # Unfortunately there is no support for re
step decode VAR according to TYPE;
(3) Operator has a special field CLASS to record the original class
name for displaying in UI.
:meta private:
"""
if cls._is_primitive(var):
# enum.IntEnum is an int instance, it causes json dumps error so we use its value.
Expand Down Expand Up @@ -406,7 +408,10 @@ def serialize(cls, var: Any) -> Any: # Unfortunately there is no support for re

@classmethod
def deserialize(cls, encoded_var: Any) -> Any:
"""Helper function of depth first search for deserialization."""
"""Helper function of depth first search for deserialization.
:meta private:
"""
# JSON primitives (except for dict) are not encoded.
if cls._is_primitive(encoded_var):
return encoded_var
Expand Down

0 comments on commit 5e24323

Please sign in to comment.