def readwrite_param(Cls, offset): if offset is None: return {} else: return {"offset": GLib.Variant('q', offset)}