aboutsummaryrefslogtreecommitdiff
path: root/src/ee/part
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-23 07:29:49 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-23 07:32:10 +0100
commit689508e07dba890fff8d1cd06e0029eca1c30994 (patch)
tree50898ade69fc853bf7310ee002767ba3990ae86a /src/ee/part
parent1fe278b37b4031a42f8e27ee4f3251b474efcb16 (diff)
downloadee-python-689508e07dba890fff8d1cd06e0029eca1c30994.tar.gz
ee-python-689508e07dba890fff8d1cd06e0029eca1c30994.tar.bz2
ee-python-689508e07dba890fff8d1cd06e0029eca1c30994.tar.xz
ee-python-689508e07dba890fff8d1cd06e0029eca1c30994.zip
xsd:
o Adding <link> list on <part>. For media, datasheets etc. digikey: o Parsing out media. PartDb: o starting on a more generic object db with indexes. order: o Using the new object db for building data while resolving parts. o Creating a report from the order.
Diffstat (limited to 'src/ee/part')
-rw-r--r--src/ee/part/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ee/part/__init__.py b/src/ee/part/__init__.py
index 36a3d3c..4ed6edb 100644
--- a/src/ee/part/__init__.py
+++ b/src/ee/part/__init__.py
@@ -23,9 +23,8 @@ class Entry(object):
class PartDb(object):
def __init__(self):
- self.parts = [] # type: List[Entry]
- self.pn_index = {} # type: MutableMapping[str, Entry]
- self.dpn_indexes = {} # type: MutableMapping[str, MutableMapping[str, Entry]]
+ self.parts: List[Entry] = []
+ self.pn_index: MutableMapping[str, Entry] = {}
self.new_entries = 0
def add_entry(self, part: types.Part, new: bool):