Skip to content

Commit 66b9876

Browse files
authored
Annotate that UUIDs are accepted in the Streams/Tunnels API (#1353)
2 parents f0ee30a + 6deaeb3 commit 66b9876

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Development
2+
-----------
3+
4+
- Update the Streams-related type annotations to accept UUIDs. (:pr:`NUMBER`)

src/globus_sdk/services/transfer/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ def create_tunnel(
27462746

27472747
def update_tunnel(
27482748
self,
2749-
tunnel_id: str,
2749+
tunnel_id: str | uuid.UUID,
27502750
update_doc: dict[str, t.Any],
27512751
) -> response.GlobusHTTPResponse:
27522752
r"""
@@ -2778,7 +2778,7 @@ def update_tunnel(
27782778

27792779
def get_tunnel(
27802780
self,
2781-
tunnel_id: str,
2781+
tunnel_id: str | uuid.UUID,
27822782
*,
27832783
query_params: dict[str, t.Any] | None = None,
27842784
) -> response.GlobusHTTPResponse:
@@ -2807,7 +2807,7 @@ def get_tunnel(
28072807

28082808
def delete_tunnel(
28092809
self,
2810-
tunnel_id: str,
2810+
tunnel_id: str | uuid.UUID,
28112811
) -> response.GlobusHTTPResponse:
28122812
"""
28132813
:param tunnel_id: The ID of the Tunnel to be deleted.
@@ -2862,7 +2862,7 @@ def list_tunnels(
28622862

28632863
def get_stream_access_point(
28642864
self,
2865-
stream_ap_id: str,
2865+
stream_ap_id: str | uuid.UUID,
28662866
*,
28672867
query_params: dict[str, t.Any] | None = None,
28682868
) -> response.GlobusHTTPResponse:

0 commit comments

Comments
 (0)