Skip to content

Commit 001ac8f

Browse files
author
Thomas Preud'homme
committed
Help mypy with typing
Give the type to _files and _queue which mypy is confused about. Reviewed By: danilaml Differential Revision: https://reviews.llvm.org/D95068
1 parent 3807291 commit 001ac8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lnt/util/wsgi_restart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from future import standard_library
44
standard_library.install_aliases()
55
import os
6+
from pathlib import Path
7+
from typing import Sequence
68
import sys
79
import signal
810
import threading
@@ -11,10 +13,10 @@
1113

1214
_interval = 1.0
1315
_times = {}
14-
_files = []
16+
_files = [] # type: Sequence[Path]
1517

1618
_running = False
17-
_queue = queue.Queue()
19+
_queue = queue.Queue() # type: queue.Queue
1820
_lock = threading.Lock()
1921

2022

0 commit comments

Comments
 (0)