diff --git a/workos/resources/directory_sync.py b/workos/resources/directory_sync.py index 5581d83a..885492d6 100644 --- a/workos/resources/directory_sync.py +++ b/workos/resources/directory_sync.py @@ -46,9 +46,6 @@ class Directory(WorkOSModel): domain: Optional[str] = None name: str organization_id: str - # Toying around with the differences in type hinting or deserialization for enums vs literals. In the end pretty equivalent, - # it's a question of whether we want to present strings or DirectoryState.ACTIVE to the user - # leaving both options here for now until we settle on a preference state: LiteralOrUntyped[DirectoryState] type: LiteralOrUntyped[DirectoryType] created_at: str diff --git a/workos/typing/enums.py b/workos/typing/enums.py index 1335d796..d61e82b0 100644 --- a/workos/typing/enums.py +++ b/workos/typing/enums.py @@ -13,8 +13,6 @@ EnumType = TypeVar("EnumType", bound=Enum) -# Identical to the literal or strings path, except meant for a literal of enum values. - def convert_unknown_enum_to_untyped_literal( value: Any, handler: ValidatorFunctionWrapHandler, info: ValidationInfo