@@ -79,7 +79,7 @@ def from_extensions(
7979 schema_href : Optional [str ] = None ,
8080 ) -> "CollectionSearchExtension" :
8181 """Create CollectionSearchExtension object from extensions."""
82- supported_extension = {
82+ supported_extensions = {
8383 "FreeTextExtension" : ConformanceClasses .FREETEXT ,
8484 "FreeTextAdvancedExtension" : ConformanceClasses .FREETEXT ,
8585 "QueryExtension" : ConformanceClasses .QUERY ,
@@ -92,7 +92,7 @@ def from_extensions(
9292 ConformanceClasses .BASIS ,
9393 ]
9494 for ext in extensions :
95- conf = supported_extension .get (ext .__class__ .__name__ , None )
95+ conf = supported_extensions .get (ext .__class__ .__name__ , None )
9696 if not conf :
9797 warnings .warn (
9898 f"{ ext .__class__ .__name__ } extension not supported in `CollectionSearchExtension.from_extensions` method." , # noqa: E501
@@ -187,7 +187,7 @@ def from_extensions(
187187 router : Optional [APIRouter ] = None ,
188188 ) -> "CollectionSearchPostExtension" :
189189 """Create CollectionSearchPostExtension object from extensions."""
190- supported_extension = {
190+ supported_extensions = {
191191 "FreeTextExtension" : ConformanceClasses .FREETEXT ,
192192 "FreeTextAdvancedExtension" : ConformanceClasses .FREETEXT ,
193193 "QueryExtension" : ConformanceClasses .QUERY ,
@@ -200,7 +200,7 @@ def from_extensions(
200200 ConformanceClasses .BASIS ,
201201 ]
202202 for ext in extensions :
203- conf = supported_extension .get (ext .__class__ .__name__ , None )
203+ conf = supported_extensions .get (ext .__class__ .__name__ , None )
204204 if not conf :
205205 warnings .warn (
206206 f"{ ext .__class__ .__name__ } extension not supported in `CollectionSearchExtension.from_extensions` method." , # noqa: E501
0 commit comments