diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-14 06:27:16 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 08:22:02 +0100 |
commit | 8d17fb5bc4b0dae0758e01a44d77d87acf2e686a (patch) | |
tree | a13ed043962b8a8da355bba956dc9e77b7fb217e /src/ee/xml | |
parent | 2315d1a34cb777f1731368619a4ca14f46125bb4 (diff) | |
download | ee-python-8d17fb5bc4b0dae0758e01a44d77d87acf2e686a.tar.gz ee-python-8d17fb5bc4b0dae0758e01a44d77d87acf2e686a.tar.bz2 ee-python-8d17fb5bc4b0dae0758e01a44d77d87acf2e686a.tar.xz ee-python-8d17fb5bc4b0dae0758e01a44d77d87acf2e686a.zip |
o Adding module for searching on element14.
o Starting on functionality create orders. Very WIP.
o Adding a concept of an "ee project". Can load a gitconfig-like config
file.
o Adding a tool to import a yaml file into a part xml file.
Diffstat (limited to 'src/ee/xml')
-rw-r--r-- | src/ee/xml/bom_file_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ee/xml/bom_file_utils.py b/src/ee/xml/bom_file_utils.py index d1f8be9..063a7bd 100644 --- a/src/ee/xml/bom_file_utils.py +++ b/src/ee/xml/bom_file_utils.py @@ -28,13 +28,13 @@ def part_numbers(part: bomFile.Part) -> List[bomFile.PartNumber]: return pns.part_numberProp -def find_pn(part: bomFile.Part) -> str: +def find_pn(part: bomFile.Part) -> Optional[str]: for pn in part_numbers(part): if pn.distributor is None: return pn.value -def find_dpn(part: bomFile.Part, distributor: str) -> str: +def find_dpn(part: bomFile.Part, distributor: str) -> Optional[str]: for pn in part_numbers(part): if pn.distributor == distributor: return pn.value |