@@ -115,12 +115,12 @@ def parent_type_name(self) -> str:
115115 return self ["parentTypeName" ]
116116
117117 @property
118- def variables (self ) -> Dict [str , str ]:
118+ def variables (self ) -> Optional [ Dict [str , str ] ]:
119119 """A map which holds all variables that are passed into the GraphQL request."""
120120 return self .get ("variables" )
121121
122122 @property
123- def selection_set_list (self ) -> List [str ]:
123+ def selection_set_list (self ) -> Optional [ List [str ] ]:
124124 """A list representation of the fields in the GraphQL selection set. Fields that are aliased will
125125 only be referenced by the alias name, not the field name."""
126126 return self .get ("selectionSetList" )
@@ -147,7 +147,7 @@ class AppSyncResolverEvent(DictWrapper):
147147 def __init__ (self , data : dict ):
148148 super ().__init__ (data )
149149
150- info : dict = data .get ("info" )
150+ info : Optional [ dict ] = data .get ("info" )
151151 if not info :
152152 info = {"fieldName" : self .get ("fieldName" ), "parentTypeName" : self .get ("typeName" )}
153153
@@ -164,7 +164,7 @@ def field_name(self) -> str:
164164 return self .info .field_name
165165
166166 @property
167- def arguments (self ) -> Dict [str , any ]:
167+ def arguments (self ) -> Dict [str , Any ]:
168168 """A map that contains all GraphQL arguments for this field."""
169169 return self ["arguments" ]
170170
@@ -181,7 +181,7 @@ def identity(self) -> Union[None, AppSyncIdentityIAM, AppSyncIdentityCognito]:
181181 return get_identity_object (self .get ("identity" ))
182182
183183 @property
184- def source (self ) -> Dict [str , any ]:
184+ def source (self ) -> Optional [ Dict [str , Any ] ]:
185185 """A map that contains the resolution of the parent field."""
186186 return self .get ("source" )
187187
@@ -191,7 +191,7 @@ def request_headers(self) -> Dict[str, str]:
191191 return self ["request" ]["headers" ]
192192
193193 @property
194- def prev_result (self ) -> Optional [Dict [str , any ]]:
194+ def prev_result (self ) -> Optional [Dict [str , Any ]]:
195195 """It represents the result of whatever previous operation was executed in a pipeline resolver."""
196196 prev = self .get ("prev" )
197197 if not prev :
0 commit comments