pybind / cephfs: remove static typing in LibCephFS.chown
3 - minor
Pull request ID:
def chown(self, path, int uid, int gid): """ Change directory ownership :param path: the path of the directory to change. :param uid: the uid to set :param gid: the gid to set """ self.require_state("mounted") path = cstr(path, 'path') if not isinstance(uid, int): raise TypeError('uid must be an int') elif not isinstance(gid, int): raise TypeError('gid must be an int')
although Cython supports typing function agrs, it makes less sense as the type is checked in the function itself. Plus, to be uniform with other cephfs python binding APIs, it makes sense to remove static typing here.