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(
257
257
f"Invalid data type. Available string or two items list of string. Got { mapped_field_type } ."
258
258
)
259
259
260
- def _resolve_complex_type (self , complex_type : ComplexFieldType ) -> Mapping [str , Any ]:
260
+ def _resolve_complex_type (self , complex_type : ComplexFieldType ) -> Dict [str , Any ]:
261
261
if not complex_type .items :
262
262
return self ._get_airbyte_type (complex_type .field_type )
263
263
@@ -292,7 +292,7 @@ def _replace_type_if_not_valid(
292
292
return field_type
293
293
294
294
@staticmethod
295
- def _get_airbyte_type (field_type : str ) -> MutableMapping [str , Any ]:
295
+ def _get_airbyte_type (field_type : str ) -> Dict [str , Any ]:
296
296
"""
297
297
Maps a field type to its corresponding Airbyte type definition.
298
298
"""
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def _to_mapping(
73
73
return json .loads (body .decode ()) # type: ignore # assumes return type of Mapping[str, Any]
74
74
elif isinstance (body , str ):
75
75
try :
76
- return json .loads (body )
76
+ return json .loads (body ) # type: ignore # assumes return type of Mapping[str, Any]
77
77
except json .JSONDecodeError :
78
78
# one of the body is a mapping while the other isn't so comparison should fail anyway
79
79
return None
You can’t perform that action at this time.
0 commit comments