]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: correct annotation of {mon,pg,osd}_command
authorKefu Chai <kchai@redhat.com>
Fri, 1 Jan 2021 12:14:37 +0000 (20:14 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Jan 2021 12:37:46 +0000 (20:37 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx

index bdab1339dbcd065168ac7002719baec6c92fecee..829399c378ea8a8ecb063be0d71fcf106a738a6e 100644 (file)
@@ -1004,7 +1004,7 @@ Rados object in state %s." % self.state)
                     cmd: str,
                     inbuf: bytes,
                     timeout: int = 0,
-                    target: Optional[Union[str, int]] = None) -> Tuple[int, str, bytes]:
+                    target: Optional[Union[str, int]] = None) -> Tuple[int, bytes, str]:
         """
         Send a command to the mon.
 
@@ -1078,7 +1078,7 @@ Rados object in state %s." % self.state)
                     osdid: int,
                     cmd: str,
                     inbuf: bytes,
-                    timeout: int = 0) -> Tuple[int, str, bytes]:
+                    timeout: int = 0) -> Tuple[int, bytes, str]:
         """
         osd_command(osdid, cmd, inbuf, outbuf, outbuflen, outs, outslen)
 
@@ -1181,7 +1181,7 @@ Rados object in state %s." % self.state)
                    pgid: str,
                    cmd: str,
                    inbuf: bytes,
-                   timeout: int = 0) -> Tuple[int, str, bytes]:
+                   timeout: int = 0) -> Tuple[int, bytes, str]:
         """
         pg_command(pgid, cmd, inbuf, outbuf, outbuflen, outs, outslen)