From 0fda329d07bbaf1bd1c0b55d782f0918157b65be Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 3 Mar 2020 08:18:19 -0700 Subject: [PATCH] mgr/volumes: add `deque` type fixes mypy error: volumes/fs/async_job.py: note: In member "__init__" of class "AsyncJobs": volumes/fs/async_job.py:97: error: Need type annotation for 'q' Fixes: https://tracker.ceph.com/issues/44393 Signed-off-by: Michael Fritch --- src/pybind/mgr/volumes/fs/async_job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/async_job.py b/src/pybind/mgr/volumes/fs/async_job.py index a83fc6dc916..bb07fda6e33 100644 --- a/src/pybind/mgr/volumes/fs/async_job.py +++ b/src/pybind/mgr/volumes/fs/async_job.py @@ -94,7 +94,7 @@ class AsyncJobs(object): def __init__(self, volume_client, name_pfx, nr_concurrent_jobs): self.vc = volume_client # queue of volumes for starting async jobs - self.q = deque() + self.q = deque() # type: deque # volume => job tracking self.jobs = {} # lock, cv for kickstarting jobs -- 2.39.5