From a14649f1031a6f53b6adc3d3a91fe386b5c2d32f Mon Sep 17 00:00:00 2001 From: Caleb Hattingh Date: Fri, 3 May 2024 23:35:44 +0200 Subject: [PATCH] chore: restore the typing signature for fuzzy_term_query (#261) --- tantivy/tantivy.pyi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tantivy/tantivy.pyi b/tantivy/tantivy.pyi index 131557e..3934b62 100644 --- a/tantivy/tantivy.pyi +++ b/tantivy/tantivy.pyi @@ -205,6 +205,17 @@ class Query: def all_query() -> Query: pass + @staticmethod + def fuzzy_term_query( + schema: Schema, + field_name: str, + text: str, + distance: int = 1, + transposition_cost_one: bool = True, + prefix=False, + ) -> Query: + pass + @staticmethod def phrase_query(schema: Schema, field_name: str, words: list[Union[str, tuple[int, str]]], slop: int = 0) -> Query: pass