From 689508e07dba890fff8d1cd06e0029eca1c30994 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 23 Mar 2019 07:29:49 +0100 Subject: xsd: o Adding list on . 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. --- src/ee/part/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ee/part') 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): -- cgit v1.2.3