Page MenuHomeSoftware Heritage

D4208.id14854.diff
No OneTemporary

D4208.id14854.diff

diff --git a/swh/deposit/cli/client.py b/swh/deposit/cli/client.py
--- a/swh/deposit/cli/client.py
+++ b/swh/deposit/cli/client.py
@@ -3,6 +3,8 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
+from __future__ import annotations
+
import logging
# WARNING: do not import unnecessary things here to keep cli startup time under
@@ -100,7 +102,7 @@
return path
-def _client(url: str, username: str, password: str) -> "PublicApiDepositClient":
+def _client(url: str, username: str, password: str) -> PublicApiDepositClient:
"""Instantiate a client to access the deposit api server
Args:
@@ -116,7 +118,7 @@
)
-def _collection(client: "PublicApiDepositClient") -> str:
+def _collection(client: PublicApiDepositClient) -> str:
"""Retrieve the client's collection
"""

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 1:24 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217795

Event Timeline