Skip to content

Commit

Permalink
Annotate CONFIG_KWARGS in UvicornWorker class (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukalwa committed Oct 31, 2022
1 parent 22bd00e commit 4634b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvicorn/workers.py
Expand Up @@ -2,7 +2,7 @@
import logging
import signal
import sys
from typing import Any
from typing import Any, Dict

from gunicorn.arbiter import Arbiter
from gunicorn.workers.base import Worker
Expand All @@ -17,7 +17,7 @@ class UvicornWorker(Worker):
rather than a WSGI callable.
"""

CONFIG_KWARGS = {"loop": "auto", "http": "auto"}
CONFIG_KWARGS: Dict[str, Any] = {"loop": "auto", "http": "auto"}

def __init__(self, *args: Any, **kwargs: Any) -> None:
super(UvicornWorker, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 4634b7f

Please sign in to comment.