Skip to content

Commit

Permalink
fix: correct network type in uploadcollectionresult
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry committed Oct 31, 2023
1 parent 71647c9 commit 9636e6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ def _generate_payload(
"format": "legacy",
"value": self._get_file_fixers(upload_data),
},
"network_files": network_files if network_files is not None else [],
"network_files": [file.get_filename().decode() for file in network_files]
if network_files is not None
else [],
"coverage_files": self._get_coverage_files(upload_data),
"metadata": {},
}
Expand Down
2 changes: 1 addition & 1 deletion codecov_cli/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class UploadCollectionResultFileFixer(object):
@dataclass
class UploadCollectionResult(object):
__slots__ = ["network", "coverage_files", "file_fixes"]
network: typing.List[str]
network: typing.List[UploadCollectionResultFile]
coverage_files: typing.List[UploadCollectionResultFile]
file_fixes: typing.List[UploadCollectionResultFileFixer]

Expand Down

0 comments on commit 9636e6d

Please sign in to comment.