"""Endpoints module."""

from dependency_injector.wiring import Provide

from .containers import Container


async def index(
        query: str = Provide[Container.config.default.query],
        limit: int = Provide[Container.config.default.limit.as_int()],
        search_service = Provide[Container.search_service],
):
    gifs = await search_service.search(query, limit)
    return {
        'query': query,
        'limit': limit,
        'gifs': gifs,
    }

"""Endpoints module."""

from dependency_injector.wiring import Provide

from .containers import Container


async def index(
        query: str = Provide[Container.config.default.query],
        limit: int = Provide[Container.config.default.limit.as_int()],
        search_service=Provide[Container.search_service],
):
    gifs = await search_service.search(query, limit)
    return {
        'query': query,
        'limit': limit,
        'gifs': gifs,
    }

Fix fastapi example flake8 error
Fix fastapi example flake8 error
