def wrap(*args, **kwargs): if args and isinstance(args[0], Interface): interface = args[0] setdefault(kwargs, { 'app_version': interface.client.configuration['app.version'], 'app_date': interface.client.configuration['app.date'] }, lambda key, value: value) return func(*args, **kwargs)
def wrap(*args, **kwargs): if args and isinstance(args[0], Interface): interface = args[0] setdefault(kwargs, { 'plugin_version': interface.client.plugin_version, 'media_center_version': interface.client.media_center_version, 'media_center_date': interface.client.media_center_date }, lambda key, value: value) return func(*args, **kwargs)
def wrap(*args, **kwargs): if args and isinstance(args[0], Interface): interface = args[0] setdefault( kwargs, { "app_version": interface.client.configuration["app.version"], "app_date": interface.client.configuration["app.date"], }, lambda key, value: value, ) return func(*args, **kwargs)