Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago authored Aug 21, 2024
1 parent aac7b7a commit ccfab4c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def from_extensions(
schema_href: Optional[str] = None,
) -> "CollectionSearchExtension":
"""Create CollectionSearchExtension object from extensions."""
supported_extension = {
supported_extensions = {
"FreeTextExtension": ConformanceClasses.FREETEXT,
"FreeTextAdvancedExtension": ConformanceClasses.FREETEXT,
"QueryExtension": ConformanceClasses.QUERY,
Expand All @@ -92,7 +92,7 @@ def from_extensions(
ConformanceClasses.BASIS,
]
for ext in extensions:
conf = supported_extension.get(ext.__class__.__name__, None)
conf = supported_extensions.get(ext.__class__.__name__, None)
if not conf:
warnings.warn(
f"{ext.__class__.__name__} extension not supported in `CollectionSearchExtension.from_extensions` method.", # noqa: E501
Expand Down Expand Up @@ -187,7 +187,7 @@ def from_extensions(
router: Optional[APIRouter] = None,
) -> "CollectionSearchPostExtension":
"""Create CollectionSearchPostExtension object from extensions."""
supported_extension = {
supported_extensions = {
"FreeTextExtension": ConformanceClasses.FREETEXT,
"FreeTextAdvancedExtension": ConformanceClasses.FREETEXT,
"QueryExtension": ConformanceClasses.QUERY,
Expand All @@ -200,7 +200,7 @@ def from_extensions(
ConformanceClasses.BASIS,
]
for ext in extensions:
conf = supported_extension.get(ext.__class__.__name__, None)
conf = supported_extensions.get(ext.__class__.__name__, None)
if not conf:
warnings.warn(
f"{ext.__class__.__name__} extension not supported in `CollectionSearchExtension.from_extensions` method.", # noqa: E501
Expand Down

0 comments on commit ccfab4c

Please sign in to comment.