Skip to content

Commit

Permalink
Remove parentheses around return expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
kvid committed Nov 16, 2020
1 parent c2130f3 commit e04058c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wireviz/wv_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_additional_component_table(harness, component: Union[Connector, Cable])
rows.append(component_table_entry(f'#{id} ({extra.type.rstrip()})', qty, extra.unit))
else:
rows.append(component_table_entry(extra.description, qty, extra.unit, extra.pn, extra.manufacturer, extra.mpn))
return(rows)
return rows

def get_additional_component_bom(component: Union[Connector, Cable]) -> List[dict]:
bom_entries = []
Expand All @@ -35,7 +35,7 @@ def get_additional_component_bom(component: Union[Connector, Cable]) -> List[dic
'pn': part.pn,
'designators': component.name if component.show_name else None
})
return(bom_entries)
return bom_entries

def bom_types_group(entry: dict) -> Tuple[str, ...]:
"""Return a tuple of values from the dict that must be equal to join BOM entries."""
Expand Down

0 comments on commit e04058c

Please sign in to comment.