Skip to content

Commit

Permalink
Removed unused "type: ignore" comments
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Apr 25, 2024
1 parent 52fcbfe commit e119c42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions duckduckgo_search_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ class DdgNewsOut:
image: str


class MyOpenAPIController(OpenAPIController): # type: ignore
class MyOpenAPIController(OpenAPIController):
path = "/"


@get("/text") # type: ignore
@get("/text")
async def ddg_text_search(
q: Annotated[str, Parameter(description="Search query", required=True)],
region: Annotated[str, Parameter(description="Region", default="wt-wt")] = "wt-wt",
Expand Down Expand Up @@ -108,7 +108,7 @@ async def ddg_text_search(
return Response(status_code=HTTP_500_INTERNAL_SERVER_ERROR) # type: ignore


@get("/images") # type: ignore
@get("/images")
async def ddg_images_search(
q: Annotated[str, Parameter(description="Search query", required=True)],
region: Annotated[str, Parameter(description="Region", default="wt-wt")] = "wt-wt",
Expand Down Expand Up @@ -185,7 +185,7 @@ async def ddg_images_search(
return Response(status_code=HTTP_500_INTERNAL_SERVER_ERROR) # type: ignore


@get("/videos") # type: ignore
@get("/videos")
async def ddg_videos_search(
q: Annotated[str, Parameter(description="Search query", required=True)],
region: Annotated[str, Parameter(description="Region", default="wt-wt")] = "wt-wt",
Expand Down Expand Up @@ -237,7 +237,7 @@ async def ddg_videos_search(
return Response(status_code=HTTP_500_INTERNAL_SERVER_ERROR) # type: ignore


@get("/news") # type: ignore
@get("/news")
async def ddg_news_search(
q: Annotated[str, Parameter(description="Search query", required=True)],
region: Annotated[str, Parameter(description="Region", default="wt-wt")] = "wt-wt",
Expand Down

0 comments on commit e119c42

Please sign in to comment.