Skip to content

Commit

Permalink
Use unpacking of dict items
Browse files Browse the repository at this point in the history
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
  • Loading branch information
Usiel and jedcunningham authored Jun 11, 2024
1 parent 0112221 commit 674f5c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/serialization/serialized_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,7 @@ def is_serialized(val):
def _serialize_params_dict(cls, params: ParamsDict | dict):
"""Serialize Params dict for a DAG or task."""
serialized_params = {}
for idx, item in enumerate(params.items()):
k, v = item
for idx, (k, v) in enumerate(params.items()):
# TODO: As of now, we would allow serialization of params which are of type Param only.
try:
class_identity = f"{v.__module__}.{v.__class__.__name__}"
Expand Down

0 comments on commit 674f5c2

Please sign in to comment.