diff --git a/tantivy/tantivy.pyi b/tantivy/tantivy.pyi index 0120c32..cb3b253 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