From 0dbd81cbb7f0f17b9a3e290664968930eca696a0 Mon Sep 17 00:00:00 2001 From: Caleb Hattingh Date: Thu, 5 Sep 2024 16:28:35 +0200 Subject: [PATCH] chore: type-sig `schema` in `Document.from_dict` has None default (#346) --- tantivy/tantivy.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tantivy/tantivy.pyi b/tantivy/tantivy.pyi index 0120c325..cb3b2535 100644 --- a/tantivy/tantivy.pyi +++ b/tantivy/tantivy.pyi @@ -135,7 +135,7 @@ class Document: pass @staticmethod - def from_dict(py_dict: dict, schema: Optional[Schema]) -> Document: + def from_dict(py_dict: dict, schema: Optional[Schema] = None) -> Document: pass def to_dict(self) -> Any: @@ -435,4 +435,4 @@ class SnippetGenerator: pass def set_max_num_chars(self, max_num_chars: int) -> None: - pass \ No newline at end of file + pass