File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
sources/declarative/schema Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def _get_type(
257257 f"Invalid data type. Available string or two items list of string. Got { mapped_field_type } ."
258258 )
259259
260- def _resolve_complex_type (self , complex_type : ComplexFieldType ) -> Mapping [str , Any ]:
260+ def _resolve_complex_type (self , complex_type : ComplexFieldType ) -> Dict [str , Any ]:
261261 if not complex_type .items :
262262 return self ._get_airbyte_type (complex_type .field_type )
263263
@@ -292,7 +292,7 @@ def _replace_type_if_not_valid(
292292 return field_type
293293
294294 @staticmethod
295- def _get_airbyte_type (field_type : str ) -> MutableMapping [str , Any ]:
295+ def _get_airbyte_type (field_type : str ) -> Dict [str , Any ]:
296296 """
297297 Maps a field type to its corresponding Airbyte type definition.
298298 """
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def _to_mapping(
7373 return json .loads (body .decode ()) # type: ignore # assumes return type of Mapping[str, Any]
7474 elif isinstance (body , str ):
7575 try :
76- return json .loads (body )
76+ return json .loads (body ) # type: ignore # assumes return type of Mapping[str, Any]
7777 except json .JSONDecodeError :
7878 # one of the body is a mapping while the other isn't so comparison should fail anyway
7979 return None
You can’t perform that action at this time.
0 commit comments