Skip to content

Commit

Permalink
Fix up flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwatts committed Apr 26, 2024
1 parent c4c7a3e commit ff2e32c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion func_adl/type_based_replacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,10 @@ def visit_Dict(self, node: ast.Dict) -> Any:
t_node = self.generic_visit(node)
assert isinstance(t_node, ast.Dict)

fields: List[Tuple[str, type]] = [(ast.literal_eval(f), self.lookup_type(v)) for f, v in zip(t_node.keys, t_node.values)] # type: ignore
fields: List[Tuple[str, type]] = [
(ast.literal_eval(f), self.lookup_type(v)) # type: ignore
for f, v in zip(t_node.keys, t_node.values)
]
dict_dataclass = make_dataclass("dict_dataclass", fields)

self._found_types[t_node] = dict_dataclass
Expand Down

0 comments on commit ff2e32c

Please sign in to comment.