Skip to content

Commit 459544d

Browse files
committed
Add type annotation to Config kwargs in workers.py
https://mypy.readthedocs.io/en/stable/type_inference_and_annotations.html This is just one of those times when mypy needs a little help.
1 parent 14cb546 commit 459544d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvicorn/workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
3030
logger.setLevel(self.log.access_log.level)
3131
logger.propagate = False
3232

33-
config_kwargs = {
33+
config_kwargs: dict = {
3434
"app": None,
3535
"log_config": None,
3636
"timeout_keep_alive": self.cfg.keepalive,

0 commit comments

Comments
 (0)