diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-23 07:29:49 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-23 07:32:10 +0100 |
commit | 689508e07dba890fff8d1cd06e0029eca1c30994 (patch) | |
tree | 50898ade69fc853bf7310ee002767ba3990ae86a /src/ee/part | |
parent | 1fe278b37b4031a42f8e27ee4f3251b474efcb16 (diff) | |
download | ee-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__.py | 5 |
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): |