Skip to content

Commit

Permalink
Set defaults for all optional types and use Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tribble committed Aug 3, 2024
1 parent 35d27e0 commit cee5e99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workos/resources/sso.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Literal, Sequence, Union
from typing import Literal, Optional, Sequence, Union
from workos.resources.workos_model import WorkOSModel
from workos.types.sso.connection import Connection, ConnectionType
from workos.typing.literals import LiteralOrUntyped
Expand All @@ -11,12 +11,12 @@ class Profile(WorkOSModel):
id: str
connection_id: str
connection_type: LiteralOrUntyped[ConnectionType]
organization_id: Union[str, None]
organization_id: Optional[str] = None
email: str
first_name: Union[str, None]
last_name: Union[str, None]
first_name: Optional[str] = None
last_name: Optional[str] = None
idp_id: str
groups: Union[Sequence[str], None] = None
groups: Optional[Sequence[str]] = None
raw_attributes: dict


Expand Down

0 comments on commit cee5e99

Please sign in to comment.