Skip to content

Commit 5211752

Browse files
nits
1 parent d7c4f7e commit 5211752

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/workos/types/user_management/list_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Optional, Sequence
22
from workos.types.list_resource import ListArgs
3-
from workos.types.user_management.organization_membership_status import (
3+
from workos.types.user_management.organization_membership import (
44
OrganizationMembershipStatus,
55
)
66

src/workos/types/user_management/organization_membership.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
from pydantic import Field
44
from typing_extensions import TypedDict
55

6-
from workos.types.user_management.organization_membership_status import (
7-
OrganizationMembershipStatus,
8-
)
96
from workos.types.workos_model import WorkOSModel
107
from workos.typing.literals import LiteralOrUntyped
118

9+
OrganizationMembershipStatus = Literal["active", "inactive", "pending"]
10+
1211

1312
class BaseOrganizationMembership(WorkOSModel):
1413
object: Literal["organization_membership"]
@@ -26,6 +25,8 @@ class OrganizationMembershipRole(TypedDict):
2625

2726

2827
class OrganizationMembership(BaseOrganizationMembership):
28+
"""Representation of an WorkOS Organization Membership."""
29+
2930
role: OrganizationMembershipRole
3031
roles: Optional[Sequence[OrganizationMembershipRole]] = None
31-
custom_attributes: Mapping[str, Any] = Field(default_factory=dict)
32+
custom_attributes: Mapping[str, Any] = {}

src/workos/types/user_management/organization_membership_status.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/workos/utils/_base_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _prepare_request(
137137
headers Optional[dict]: Custom headers to be added to the request
138138
exclude_default_auth_headers (bool): If True, excludes default auth headers from the request
139139
force_include_body (bool): If True, allows sending a body in a bodyless request (used for DELETE requests)
140-
140+
exclude_none (bool): If True (default), strips keys with None values from the JSON body so only defined fields are sent.
141141
Returns:
142142
dict: Response from WorkOS
143143
"""

0 commit comments

Comments
 (0)