]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind/rados: add type annotations to Rados.mon_command()
authorKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2020 05:02:15 +0000 (13:02 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 16:30:54 +0000 (00:30 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx

index 38355c23bda128b3c36a6a116a00e5457ad362f5..7ef2d8b546a34d0daaf2e713307ad951e663580c 100644 (file)
@@ -1356,6 +1356,7 @@ Rados object in state %s." % self.state)
         io.io = ioctx
         return io
 
+    @requires(('cmd': str), ('inbuf': bytes), ('timeout', opt(int)), ('target', opt(str)))
     def mon_command(self, cmd, inbuf, timeout=0, target=None):
         """
         Send a command to the mon.