src: modified by cleanup

This commit is contained in:
Laurier Loiselle 2023-01-19 16:24:35 -05:00
parent 6f3b586a3c
commit fcbfa09f1f
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F
5 changed files with 6 additions and 9 deletions

View File

@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
from collections import namedtuple
from dataclasses import dataclass
from enum import Enum, IntEnum
from typing import List, Optional, Union
from typing import List, Optional
import tabulate as tabulate_module

View File

@ -8,7 +8,6 @@ from typing import Any, Dict, List, Optional, Tuple, Union
from wireviz.wv_bom import (
BomHash,
BomHashList,
PartNumberInfo,
QtyMultiplierCable,
QtyMultiplierConnector,

View File

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import re
from itertools import zip_longest
from typing import Any, List, Optional, Union
from wireviz import APP_NAME, APP_URL, __version__
@ -15,8 +14,6 @@ from wireviz.wv_dataclasses import (
Connector,
MateComponent,
MatePin,
Options,
PartNumberInfo,
ShieldClass,
WireClass,
)
@ -112,7 +109,9 @@ def gv_additional_component_table(component):
[
Td(bom_bubble(subitem.bom_id)),
Td(f"{subitem.bom_qty}", align="right"),
Td(f"{subitem.qty.unit if subitem.qty.unit else 'x'}", align="left"),
Td(
f"{subitem.qty.unit if subitem.qty.unit else 'x'}", align="left"
),
Td(f"{subitem.description}", align="left"),
]
)

View File

@ -8,7 +8,7 @@ from typing import List
from graphviz import Graph
import wireviz.wv_colors
from wireviz.wv_bom import BomCategory, BomEntry, bom_list, print_bom_table
from wireviz.wv_bom import BomCategory, bom_list
from wireviz.wv_dataclasses import (
AUTOGENERATED_PREFIX,
AdditionalComponent,

View File

@ -2,7 +2,7 @@
import re
from pathlib import Path
from typing import List, Optional
from typing import List
awg_equiv_table = {
"0.09": "28",