Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-knight committed Feb 5, 2024
1 parent 8ae729b commit a091f09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hiddenfb/utility/file_loader/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ def load(self, path: Path) -> List[Dict[str, Any]]:
data = csv.reader(f)

header_columns: List[str] = self._parse_header(data)

return flatten([self._parse_row(row, header=header_columns) for row in data])

return flatten(
[self._parse_row(row, header=header_columns) for row in data]
)

def _parse_header(self, reader: Iterator[Any]) -> List[str]:
return next(reader)
Expand Down

0 comments on commit a091f09

Please sign in to comment.