Skip to content

Commit 98af60c

Browse files
committed
typing
1 parent e3baae1 commit 98af60c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

airbyte_cdk/sources/declarative/schema/dynamic_schema_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
"""

airbyte_cdk/test/mock_http/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)