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