src: modified by cleanup
This commit is contained in:
parent
6f3b586a3c
commit
fcbfa09f1f
@ -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
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
|
||||
from wireviz.wv_bom import (
|
||||
BomHash,
|
||||
BomHashList,
|
||||
PartNumberInfo,
|
||||
QtyMultiplierCable,
|
||||
QtyMultiplierConnector,
|
||||
|
||||
@ -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"),
|
||||
]
|
||||
)
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user