Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
lazebnyi committed Jan 23, 2025
1 parent 12a653d commit 73bda55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _get_type(

def _resolve_complex_type(self, complex_type: ComplexFieldType) -> Mapping[str, Any]:
types = [complex_type]
resolved_type = {}
resolved_type: MutableMapping[str, Any] = {}

while types:
current_type = types.pop()
Expand All @@ -244,7 +244,7 @@ def _replace_type_if_not_valid(
self,
field_type: Union[List[str], str],
raw_schema: MutableMapping[str, Any],
) -> Union[List[str], str]:
) -> Union[List[str], str, ComplexFieldType]:
"""
Replaces a field type if it matches a type mapping in `types_map`.
"""
Expand Down

0 comments on commit 73bda55

Please sign in to comment.