From 449883db0fce68fb1b1b440deb8da6ecd1b28602 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Thu, 23 Feb 2023 12:20:14 +0100 Subject: [PATCH] Format. --- spacy/tests/serialize/test_serialize_kb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spacy/tests/serialize/test_serialize_kb.py b/spacy/tests/serialize/test_serialize_kb.py index 7736ad6b1..1309845ab 100644 --- a/spacy/tests/serialize/test_serialize_kb.py +++ b/spacy/tests/serialize/test_serialize_kb.py @@ -117,12 +117,14 @@ def test_serialize_subclassed_kb(): self.custom_field = custom_field @registry.misc("spacy.CustomEmptyKB.v1") - def empty_custom_kb(custom_field: int) -> Callable[[Vocab, int], SubInMemoryLookupKB]: + def empty_custom_kb( + custom_field: int, + ) -> Callable[[Vocab, int], SubInMemoryLookupKB]: def empty_kb_factory(vocab: Vocab, entity_vector_length: int): return SubInMemoryLookupKB( vocab=vocab, entity_vector_length=entity_vector_length, - custom_field=custom_field + custom_field=custom_field, ) return empty_kb_factory