Skip to content

Commit

Permalink
[Dev] Make more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed Dec 19, 2020
1 parent b9903f9 commit f9c62dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ankipandas/ankidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,9 +1642,7 @@ def add_notes(

if is_list_dict_like(nflds):
n_notes = len(nflds)
specified_fields = set(
flatten_list_list(list(map(lambda d: list(d.keys()), nflds)))
)
specified_fields = set(flatten_list_list(map(list, nflds)))
unknown_fields = sorted(specified_fields - set(field_keys))
if unknown_fields:
raise ValueError(
Expand Down

0 comments on commit f9c62dd

Please sign in to comment.