From: zhengyin Date: Wed, 2 May 2018 07:16:21 +0000 (+0800) Subject: pybind: add return note in rbd.pyx X-Git-Tag: v13.1.0~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21768%2Fhead;p=ceph.git pybind: add return note in rbd.pyx Signed-off-by: Zheng Yin --- diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx index 8a02cf6f01d1b..c9ded308be76d 100644 --- a/src/pybind/rbd/rbd.pyx +++ b/src/pybind/rbd/rbd.pyx @@ -2081,7 +2081,7 @@ cdef class Image(object): Get the size of the image. If open to a snapshot, returns the size of that snapshot. - :returns: the size of the image in bytes + :returns: int - the size of the image in bytes """ cdef uint64_t image_size with nogil: @@ -2462,6 +2462,8 @@ cdef class Image(object): def get_snap_limit(self): """ Get the snapshot limit for an image. + + :returns: int - the snapshot limit for an image """ cdef: @@ -2491,6 +2493,7 @@ cdef class Image(object): """ Get the snapshot timestamp for an image. :param snap_id: the snapshot id of a snap shot + :returns: datetime - the snapshot timestamp for an image """ cdef: timespec timestamp