Skip to content

Commit

Permalink
ref: use concrete dict in HC payloads (#73744)
Browse files Browse the repository at this point in the history
JSONField can serialize only exactly `dict` and not `Mapping`

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jul 3, 2024
1 parent c2cb053 commit 233e65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry/auth/services/auth/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class RpcAuthProvider(RpcModel):
organization_id: int = -1
provider: str = ""
flags: RpcAuthProviderFlags = Field(default_factory=lambda: RpcAuthProviderFlags())
config: Mapping[str, Any]
config: dict[str, Any]
default_role: int = -1
default_global_access: bool = False

Expand All @@ -218,7 +218,7 @@ class RpcAuthIdentity(RpcModel):
user_id: int = -1
auth_provider_id: int = -1
ident: str = ""
data: Mapping[str, Any] = Field(default_factory=dict)
data: dict[str, Any] = Field(default_factory=dict)
last_verified: datetime.datetime = Field(default_factory=datetime.datetime.now)


Expand Down

0 comments on commit 233e65e

Please sign in to comment.