Skip to content

Commit

Permalink
More final things
Browse files Browse the repository at this point in the history
  • Loading branch information
xfenix committed Oct 9, 2023
1 parent ff258ea commit c50c95b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion whole_app/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion whole_app/dictionaries/protocol.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"""User dictionaries implementation."""
import typing


Expand Down

0 comments on commit c50c95b

Please sign in to comment.