From bddde152211190f13e0ee29d2fe9e8c28de08d9c Mon Sep 17 00:00:00 2001 From: Marion Deveaud Date: Thu, 4 Apr 2024 16:53:50 +0200 Subject: [PATCH] chore(types): fix type check errors --- fossology/uploads.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fossology/uploads.py b/fossology/uploads.py index 119ac67..6cdd901 100644 --- a/fossology/uploads.py +++ b/fossology/uploads.py @@ -237,7 +237,7 @@ def upload_file( :raises FossologyApiError: if the REST call failed :raises AuthorizationError: if the REST call is not authorized """ - data = { + data: dict = { "folderId": str(folder.id), "uploadDescription": description, "public": access_level.value @@ -270,14 +270,13 @@ def upload_file( ) elif vcs or url or server: if vcs: - data["location"] = vcs - print(data) + data["location"] = vcs # type: ignore data["uploadType"] = headers["uploadType"] = "vcs" elif url: - data["location"] = url + data["location"] = url # type: ignore data["uploadType"] = headers["uploadType"] = "url" elif server: - data["location"] = server + data["location"] = server # type: ignore data["uploadType"] = headers["uploadType"] = "server" headers["Content-Type"] = "application/json" response = self.session.post(