Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
yalef committed Feb 6, 2024
1 parent 966ae3f commit 3f458a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
History
=======

UNRELEASED
----------
* Extend response of import job api

0.5.0 (2023-12-19)
------------------
* Drop support of python 3.9
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import itertools
import typing
from itertools import zip_longest

from rest_framework import serializers

Expand Down Expand Up @@ -76,7 +76,11 @@ def to_representation(self, instance: models.ImportJob):
{
"previous": v1,
"current": v2,
} for v1, v2 in zip_longest(original_fields, current_fields, fillvalue="")
} for v1, v2 in itertools.zip_longest(
original_fields,
current_fields,
fillvalue="",
)
],
})

Expand Down

0 comments on commit 3f458a2

Please sign in to comment.