@@ -119,7 +119,7 @@ def bm25_instance() -> None:
119119 delete_model_cache (model ._model_dir )
120120
121121
122- def test_stem_with_stopwords_and_punctuation (bm25_instance ) -> None :
122+ def test_stem_with_stopwords_and_punctuation (bm25_instance : Bm25 ) -> None :
123123 # Setup
124124 bm25_instance .stopwords = {"the" , "is" , "a" }
125125 bm25_instance .punctuation = {"." , "," , "!" }
@@ -135,7 +135,7 @@ def test_stem_with_stopwords_and_punctuation(bm25_instance) -> None:
135135 assert result == expected , f"Expected { expected } , but got { result } "
136136
137137
138- def test_stem_case_insensitive_stopwords (bm25_instance ) -> None :
138+ def test_stem_case_insensitive_stopwords (bm25_instance : Bm25 ) -> None :
139139 # Setup
140140 bm25_instance .stopwords = {"the" , "is" , "a" }
141141 bm25_instance .punctuation = {"." , "," , "!" }
@@ -152,7 +152,7 @@ def test_stem_case_insensitive_stopwords(bm25_instance) -> None:
152152
153153
154154@pytest .mark .parametrize ("disable_stemmer" , [True , False ])
155- def test_disable_stemmer_behavior (disable_stemmer ) -> None :
155+ def test_disable_stemmer_behavior (disable_stemmer : bool ) -> None :
156156 # Setup
157157 model = Bm25 ("Qdrant/bm25" , language = "english" , disable_stemmer = disable_stemmer )
158158 model .stopwords = {"the" , "is" , "a" }
@@ -176,7 +176,7 @@ def test_disable_stemmer_behavior(disable_stemmer) -> None:
176176 "model_name" ,
177177 ["prithivida/Splade_PP_en_v1" ],
178178)
179- def test_lazy_load (model_name ) -> None :
179+ def test_lazy_load (model_name : str ) -> None :
180180 is_ci = os .getenv ("CI" )
181181 model = SparseTextEmbedding (model_name = model_name , lazy_load = True )
182182 assert not hasattr (model .model , "model" )
0 commit comments