@@ -115,12 +115,12 @@ def parent_type_name(self) -> str:
115
115
return self ["parentTypeName" ]
116
116
117
117
@property
118
- def variables (self ) -> Dict [str , str ]:
118
+ def variables (self ) -> Optional [ Dict [str , str ] ]:
119
119
"""A map which holds all variables that are passed into the GraphQL request."""
120
120
return self .get ("variables" )
121
121
122
122
@property
123
- def selection_set_list (self ) -> List [str ]:
123
+ def selection_set_list (self ) -> Optional [ List [str ] ]:
124
124
"""A list representation of the fields in the GraphQL selection set. Fields that are aliased will
125
125
only be referenced by the alias name, not the field name."""
126
126
return self .get ("selectionSetList" )
@@ -147,7 +147,7 @@ class AppSyncResolverEvent(DictWrapper):
147
147
def __init__ (self , data : dict ):
148
148
super ().__init__ (data )
149
149
150
- info : dict = data .get ("info" )
150
+ info : Optional [ dict ] = data .get ("info" )
151
151
if not info :
152
152
info = {"fieldName" : self .get ("fieldName" ), "parentTypeName" : self .get ("typeName" )}
153
153
@@ -164,7 +164,7 @@ def field_name(self) -> str:
164
164
return self .info .field_name
165
165
166
166
@property
167
- def arguments (self ) -> Dict [str , any ]:
167
+ def arguments (self ) -> Dict [str , Any ]:
168
168
"""A map that contains all GraphQL arguments for this field."""
169
169
return self ["arguments" ]
170
170
@@ -181,7 +181,7 @@ def identity(self) -> Union[None, AppSyncIdentityIAM, AppSyncIdentityCognito]:
181
181
return get_identity_object (self .get ("identity" ))
182
182
183
183
@property
184
- def source (self ) -> Dict [str , any ]:
184
+ def source (self ) -> Optional [ Dict [str , Any ] ]:
185
185
"""A map that contains the resolution of the parent field."""
186
186
return self .get ("source" )
187
187
@@ -191,7 +191,7 @@ def request_headers(self) -> Dict[str, str]:
191
191
return self ["request" ]["headers" ]
192
192
193
193
@property
194
- def prev_result (self ) -> Optional [Dict [str , any ]]:
194
+ def prev_result (self ) -> Optional [Dict [str , Any ]]:
195
195
"""It represents the result of whatever previous operation was executed in a pipeline resolver."""
196
196
prev = self .get ("prev" )
197
197
if not prev :
0 commit comments