Skip to content

Commit

Permalink
Feedback: Use MISSING
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Apr 5, 2024
1 parent 28d655c commit 419eb86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/globus_sdk/services/flows/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from globus_sdk._types import UUIDLike
from globus_sdk.authorizers import GlobusAuthorizer
from globus_sdk.scopes import ScopeBuilder
from globus_sdk.utils import MISSING, MissingType

from .errors import FlowsAPIError
from .response import (
Expand Down Expand Up @@ -324,7 +325,7 @@ def update_flow(
flow_starters: list[str] | None = None,
flow_administrators: list[str] | None = None,
keywords: list[str] | None = None,
subscription_id: UUIDLike | t.Literal["DEFAULT"] | None = None,
subscription_id: UUIDLike | t.Literal["DEFAULT"] | MissingType = MISSING,
additional_fields: dict[str, t.Any] | None = None,
) -> GlobusHTTPResponse:
"""
Expand Down Expand Up @@ -437,7 +438,7 @@ def update_flow(
"keywords": keywords,
"subscription_id": subscription_id,
}.items()
if v is not None
if v is not None and v is not MISSING
}
data.update(additional_fields or {})

Expand Down

0 comments on commit 419eb86

Please sign in to comment.