33from __future__ import annotations
44
55from dataclasses import dataclass
6- from typing import Any , ClassVar , Dict , Union , cast
6+ from typing import Any , ClassVar , Union , cast
7+
78from workos ._types import _raise_deserialize_error
89
910from .connect_application_m2m import ConnectApplicationM2M
1415class ConnectApplicationUnknown :
1516 """Unknown variant of ConnectApplication not yet recognized by this SDK version."""
1617
17- raw_data : Dict [str , Any ]
18+ raw_data : dict [str , Any ]
1819 """The raw payload, preserved so callers can still inspect the data."""
1920
2021 @classmethod
21- def from_dict (cls , data : Dict [str , Any ]) -> " ConnectApplicationUnknown" :
22+ def from_dict (cls , data : dict [str , Any ]) -> ConnectApplicationUnknown :
2223 """Wrap raw data in an unknown variant."""
2324 return cls (raw_data = data )
2425
25- def to_dict (self ) -> Dict [str , Any ]:
26+ def to_dict (self ) -> dict [str , Any ]:
2627 """Return the original raw data."""
2728 return dict (self .raw_data )
2829
@@ -37,13 +38,13 @@ def to_dict(self) -> Dict[str, Any]:
3738class ConnectApplication :
3839 """Discriminated union dispatcher (discriminated by 'application_type')."""
3940
40- _DISPATCH : ClassVar [Dict [str , type ]] = {
41+ _DISPATCH : ClassVar [dict [str , type ]] = {
4142 "m2m" : ConnectApplicationM2M ,
4243 "oauth" : ConnectApplicationOAuth ,
4344 }
4445
4546 @classmethod
46- def from_dict (cls , data : Dict [str , Any ]) -> " ConnectApplicationVariant" :
47+ def from_dict (cls , data : dict [str , Any ]) -> ConnectApplicationVariant :
4748 """Deserialize from a dictionary, dispatching to the correct variant."""
4849 if "application_type" not in data :
4950 _raise_deserialize_error (
0 commit comments