From: Michael Fritch Date: Tue, 3 Mar 2020 15:18:19 +0000 (-0700) Subject: mgr/volumes: add `deque` type X-Git-Tag: v15.1.1~93^2~14 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0fda329d07bbaf1bd1c0b55d782f0918157b65be;p=ceph-ci.git 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 --- 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