From c50c95b1b3d0898012c7f6bf877420bc84c2398d Mon Sep 17 00:00:00 2001 From: Denis Anikin Date: Mon, 9 Oct 2023 22:55:13 +0300 Subject: [PATCH] More final things --- whole_app/__main__.py | 4 +++- whole_app/dictionaries/protocol.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/whole_app/__main__.py b/whole_app/__main__.py index f4a08c8..0256758 100644 --- a/whole_app/__main__.py +++ b/whole_app/__main__.py @@ -3,6 +3,8 @@ This file meant only for basic workers wrappers and fastapi exposure. For end-points look in views.py """ +import typing + import fastapi from gunicorn.app.base import BaseApplication @@ -13,7 +15,7 @@ # pylint: disable=abstract-method class GunicornCustomApplication(BaseApplication): # type: ignore[misc] def load_config(self: "GunicornCustomApplication") -> None: - _options: dict[str, str | int] = { + _options: typing.Final[dict[str, str | int]] = { "worker_class": "uvicorn.workers.UvicornWorker", "bind": f"0.0.0.0:{SETTINGS.port}", "workers": SETTINGS.workers, diff --git a/whole_app/dictionaries/protocol.py b/whole_app/dictionaries/protocol.py index 98917d3..f3888bc 100644 --- a/whole_app/dictionaries/protocol.py +++ b/whole_app/dictionaries/protocol.py @@ -1,4 +1,3 @@ -"""User dictionaries implementation.""" import typing