From 09b302507c140aef16ebd30d108c1bb3506e58d5 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 1 Mar 2023 11:35:40 +0100 Subject: [PATCH] Update docstring. --- spacy/tests/serialize/test_serialize_kb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/serialize/test_serialize_kb.py b/spacy/tests/serialize/test_serialize_kb.py index aae1423cc..1597799d5 100644 --- a/spacy/tests/serialize/test_serialize_kb.py +++ b/spacy/tests/serialize/test_serialize_kb.py @@ -138,7 +138,7 @@ def test_serialize_subclassed_kb(): util.to_disk(path, serialize, exclude) def from_disk(self, path, exclude: Iterable[str] = SimpleFrozenList()): - """We overwrite InMemoryLookupKB.to_disk() to ensure that self.custom_field is loaded as well.""" + """We overwrite InMemoryLookupKB.from_disk() to ensure that self.custom_field is loaded as well.""" path = ensure_path(path) if not path.exists(): raise ValueError(Errors.E929.format(loc=path))