2424
2525
2626def unmarshal_Permissions (data : Any ) -> Permissions :
27- if not isinstance (data , dict ) :
27+ if type (data ) is not dict :
2828 raise TypeError (
29- "Unmarshalling the type 'Permissions' failed as data isn't a dictionary."
29+ f "Unmarshalling the type 'Permissions' failed as data isn't a dictionary."
3030 )
3131
3232 args : Dict [str , Any ] = {}
@@ -44,9 +44,9 @@ def unmarshal_Permissions(data: Any) -> Permissions:
4444
4545
4646def unmarshal_CredentialSummarySQSSNSCreds (data : Any ) -> CredentialSummarySQSSNSCreds :
47- if not isinstance (data , dict ) :
47+ if type (data ) is not dict :
4848 raise TypeError (
49- "Unmarshalling the type 'CredentialSummarySQSSNSCreds' failed as data isn't a dictionary."
49+ f "Unmarshalling the type 'CredentialSummarySQSSNSCreds' failed as data isn't a dictionary."
5050 )
5151
5252 args : Dict [str , Any ] = {}
@@ -61,9 +61,9 @@ def unmarshal_CredentialSummarySQSSNSCreds(data: Any) -> CredentialSummarySQSSNS
6161
6262
6363def unmarshal_CredentialNATSCredsFile (data : Any ) -> CredentialNATSCredsFile :
64- if not isinstance (data , dict ) :
64+ if type (data ) is not dict :
6565 raise TypeError (
66- "Unmarshalling the type 'CredentialNATSCredsFile' failed as data isn't a dictionary."
66+ f "Unmarshalling the type 'CredentialNATSCredsFile' failed as data isn't a dictionary."
6767 )
6868
6969 args : Dict [str , Any ] = {}
@@ -75,9 +75,9 @@ def unmarshal_CredentialNATSCredsFile(data: Any) -> CredentialNATSCredsFile:
7575
7676
7777def unmarshal_CredentialSQSSNSCreds (data : Any ) -> CredentialSQSSNSCreds :
78- if not isinstance (data , dict ) :
78+ if type (data ) is not dict :
7979 raise TypeError (
80- "Unmarshalling the type 'CredentialSQSSNSCreds' failed as data isn't a dictionary."
80+ f "Unmarshalling the type 'CredentialSQSSNSCreds' failed as data isn't a dictionary."
8181 )
8282
8383 args : Dict [str , Any ] = {}
@@ -95,9 +95,9 @@ def unmarshal_CredentialSQSSNSCreds(data: Any) -> CredentialSQSSNSCreds:
9595
9696
9797def unmarshal_CredentialSummary (data : Any ) -> CredentialSummary :
98- if not isinstance (data , dict ) :
98+ if type (data ) is not dict :
9999 raise TypeError (
100- "Unmarshalling the type 'CredentialSummary' failed as data isn't a dictionary."
100+ f "Unmarshalling the type 'CredentialSummary' failed as data isn't a dictionary."
101101 )
102102
103103 args : Dict [str , Any ] = {}
@@ -123,15 +123,15 @@ def unmarshal_CredentialSummary(data: Any) -> CredentialSummary:
123123
124124
125125def unmarshal_Namespace (data : Any ) -> Namespace :
126- if not isinstance (data , dict ) :
126+ if type (data ) is not dict :
127127 raise TypeError (
128- "Unmarshalling the type 'Namespace' failed as data isn't a dictionary."
128+ f "Unmarshalling the type 'Namespace' failed as data isn't a dictionary."
129129 )
130130
131131 args : Dict [str , Any ] = {}
132132
133133 field = data .get ("created_at" , None )
134- args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
134+ args ["created_at" ] = parser .isoparse (field ) if type (field ) is str else field
135135
136136 field = data .get ("endpoint" , None )
137137 args ["endpoint" ] = field
@@ -152,15 +152,15 @@ def unmarshal_Namespace(data: Any) -> Namespace:
152152 args ["region" ] = field
153153
154154 field = data .get ("updated_at" , None )
155- args ["updated_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
155+ args ["updated_at" ] = parser .isoparse (field ) if type (field ) is str else field
156156
157157 return Namespace (** args )
158158
159159
160160def unmarshal_Credential (data : Any ) -> Credential :
161- if not isinstance (data , dict ) :
161+ if type (data ) is not dict :
162162 raise TypeError (
163- "Unmarshalling the type 'Credential' failed as data isn't a dictionary."
163+ f "Unmarshalling the type 'Credential' failed as data isn't a dictionary."
164164 )
165165
166166 args : Dict [str , Any ] = {}
@@ -191,9 +191,9 @@ def unmarshal_Credential(data: Any) -> Credential:
191191
192192
193193def unmarshal_ListCredentialsResponse (data : Any ) -> ListCredentialsResponse :
194- if not isinstance (data , dict ) :
194+ if type (data ) is not dict :
195195 raise TypeError (
196- "Unmarshalling the type 'ListCredentialsResponse' failed as data isn't a dictionary."
196+ f "Unmarshalling the type 'ListCredentialsResponse' failed as data isn't a dictionary."
197197 )
198198
199199 args : Dict [str , Any ] = {}
@@ -210,9 +210,9 @@ def unmarshal_ListCredentialsResponse(data: Any) -> ListCredentialsResponse:
210210
211211
212212def unmarshal_ListNamespacesResponse (data : Any ) -> ListNamespacesResponse :
213- if not isinstance (data , dict ) :
213+ if type (data ) is not dict :
214214 raise TypeError (
215- "Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary."
215+ f "Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary."
216216 )
217217
218218 args : Dict [str , Any ] = {}
0 commit comments