Skip to content

Commit

Permalink
Allow empty file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
guarin committed Dec 5, 2023
1 parent 6c36554 commit f513863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightly/api/api_workflow_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_filenames(self) -> List[str]:

def upload_file_with_signed_url(
self,
file: IOBase,
file: Union[IOBase, None],
signed_write_url: str,
headers: Optional[Dict] = None,
session: Optional[requests.Session] = None,
Expand All @@ -237,7 +237,7 @@ def upload_file_with_signed_url(
Args:
file:
The file to upload.
The file to upload. If None, an empty file is uploaded.
signed_write_url:
The url to upload the file to. As no authorization is used,
the url must be a signed write url.
Expand Down

0 comments on commit f513863

Please sign in to comment.