From 33e03ad66d6455999cb2fd324eb42c97251b2a32 Mon Sep 17 00:00:00 2001 From: zhengyin Date: Wed, 2 May 2018 15:16:21 +0800 Subject: [PATCH] pybind: add return note in rbd.pyx Signed-off-by: Zheng Yin --- src/pybind/rbd/rbd.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx index 8a02cf6f01d..c9ded308be7 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 -- 2.39.5