aboutsummaryrefslogtreecommitdiff
path: root/src/ee/xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee/xml')
-rw-r--r--src/ee/xml/bom_file_utils.py4
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