Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
self.tags = [Tag(t) for t in self.tags]
self.files = [File(f) for f in self.files]
self.versions = [DatasetVersion(v) for v in self.versions]
self.size = File.get_size(self.totalBytes)
def __init__(self, init_dict):
parsed_dict = {k: parse(v) for k, v in init_dict.items()}
self.__dict__.update(parsed_dict)
self.size = File.get_size(self.totalBytes)
def competition_list_files(self, competition):
""" list files for competition
Parameters
==========
competition: the name of the competition
"""
competition_list_files_result = self.process_response(
self.competitions_data_list_files_with_http_info(id=competition))
return [File(f) for f in competition_list_files_result]