Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def info(self, with_output=None):
"""Retrieves information about this task.
Returns:
:func:`~pyodm.types.TaskInfo`
"""
query = {}
if with_output is not None:
query['with_output'] = with_output
return TaskInfo(self.get('/task/{}/info'.format(self.uuid), query))