From 42a76c758fa9828bb305318953519d6349d23e78 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Oct 2021 11:17:11 +0200 Subject: [PATCH] Auto-format code with black (#9346) Co-authored-by: explosion-bot --- spacy/tokens/_serialize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/tokens/_serialize.py b/spacy/tokens/_serialize.py index 5be66c801..e7799d230 100644 --- a/spacy/tokens/_serialize.py +++ b/spacy/tokens/_serialize.py @@ -67,7 +67,9 @@ class DocBin: int_attrs = [intify_attr(attr) for attr in attrs] if None in int_attrs: non_valid = [attr for attr in attrs if intify_attr(attr) is None] - raise KeyError(Errors.E983.format(dict="attrs", key=non_valid, keys=IDS.keys())) from None + raise KeyError( + Errors.E983.format(dict="attrs", key=non_valid, keys=IDS.keys()) + ) from None attrs = sorted(int_attrs) self.version = "0.1" self.attrs = [attr for attr in attrs if attr != ORTH and attr != SPACY]