add type hint
This commit is contained in:
parent
feeaef6aa4
commit
dfbb907274
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ def read_devices(el_map: ElementTree.Element) -> list[Device]:
|
||||||
f'with attributes {el_entry.attrib}')
|
f'with attributes {el_entry.attrib}')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
bin_code: int | str
|
||||||
if bin_type == 'Decimal':
|
if bin_type == 'Decimal':
|
||||||
bin_code = int(attrib['BinCode'])
|
bin_code = int(attrib['BinCode'])
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue