]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/volumes/fs/operations/lock.py
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / volumes / fs / operations / lock.py
index f9c44dc4f67989c22608ab761a456cbd15dbd9f2..f5c022935e8faf0b5dccf0a0f8d1bd78738ee974 100644 (file)
@@ -1,5 +1,6 @@
 from contextlib import contextmanager
 from threading import Lock
+from typing import Dict
 
 # singleton design pattern taken from http://www.aleax.it/5ep.html
 
@@ -21,7 +22,7 @@ class GlobalLock(object):
     _shared_state = {
         'lock' : Lock(),
         'init' : False
-    }
+    } # type: Dict
 
     def __init__(self):
         with self._shared_state['lock']: