Fix lint
This commit is contained in:
parent
73db6a31f6
commit
76cdd7b4c4
5 changed files with 8 additions and 5 deletions
|
|
@ -23,7 +23,7 @@ def main() -> None:
|
|||
module = import_module(file_name)
|
||||
|
||||
if not function_name:
|
||||
logger.warning(f"Argument function_name not provided, trying to guess it")
|
||||
logger.warning("Argument function_name not provided, trying to guess it")
|
||||
|
||||
if not function_name and "app" in module.__dict__:
|
||||
function_name = "app"
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ class GreatAI(FastAPI):
|
|||
return get_swagger_ui_html(openapi_url="openapi.json", title=self.title)
|
||||
|
||||
@self.get("/docs/index.html", include_in_schema=False)
|
||||
def redirect_to_entrypoint() -> RedirectResponse:
|
||||
def redirect_to_docs() -> RedirectResponse:
|
||||
return RedirectResponse("/docs")
|
||||
|
||||
if not disable_metrics:
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ def parallel_map(
|
|||
)
|
||||
|
||||
if concurrency == 1 or len(values) <= chunk_size:
|
||||
logger.warning(f"Running in series, there is no reason for parallelism")
|
||||
logger.warning("Running in series, there is no reason for parallelism")
|
||||
iterable = values if disable_progress else tqdm(values)
|
||||
return [function(v) for v in iterable]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue