Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343271
D4208.id14854.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
886 B
Subscribers
None
D4208.id14854.diff
View Options
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
Details
Attached
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
Attached To
D4208: cli.client: Declare directly the plain type instead of the string
Event Timeline
Log In to Comment