Skip to content

Commit 43c57e4

Browse files
ajworkosclaude
andcommitted
Fix Python 3.8 compatibility for idp_attributes type
Use Dict[str, Any] instead of dict[str, Any] for Python 3.8 compatibility. The lowercase dict syntax is only available in Python 3.9+. Fixes issue identified by Greptile bot review. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c007bbe commit 43c57e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/workos/types/user_management/organization_membership.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Literal, Sequence, Optional
1+
from typing import Any, Dict, Literal, Sequence, Optional
22
from typing_extensions import TypedDict
33

44
from workos.types.workos_model import WorkOSModel
@@ -21,6 +21,6 @@ class OrganizationMembership(WorkOSModel):
2121
role: OrganizationMembershipRole
2222
roles: Optional[Sequence[OrganizationMembershipRole]] = None
2323
status: LiteralOrUntyped[OrganizationMembershipStatus]
24-
idp_attributes: dict[str, Any]
24+
idp_attributes: Dict[str, Any]
2525
created_at: str
2626
updated_at: str

0 commit comments

Comments
 (0)