Skip to content

Commit

Permalink
Fix typing check
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Oct 28, 2024
1 parent 17ce0cd commit 82abb02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mypy_boto3_builder/utils/lookup_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def _generate_lookup(
result: dict[tuple[str, ...], _V] = {}
for key, value in hash_map.items():
if isinstance(value, Mapping):
value = cast(Mapping[str, _T], value)
value = cast(Mapping[str, _T], value) # type: ignore
result.update(self._generate_lookup(value, (*keys, key)))
else:
value = cast(_V, value)
result[(*keys, key)] = value
value_v = cast(_V, value) # type: ignore
result[(*keys, key)] = value_v
return result

def _iterate_lookup_keys(self, keys: tuple[str, ...]) -> Iterator[tuple[str, ...]]:
Expand Down

0 comments on commit 82abb02

Please sign in to comment.