Compare commits

...

2 Commits

Author SHA1 Message Date
b450fd10fe Add github mirror and bump python version 2024-03-30 18:17:40 -07:00
dfbb907274 add type hint 2024-03-30 18:16:51 -07:00
2 changed files with 3 additions and 1 deletions

View File

@ -6,12 +6,13 @@
### Links ### Links
- [Source repository](https://mpxd.net/code/jan/g85) - [Source repository](https://mpxd.net/code/jan/g85)
- [PyPI](https://pypi.org/project/g85) - [PyPI](https://pypi.org/project/g85)
- [Github mirror](https://github.com/anewusername/g85)
## Installation ## Installation
Requirements: Requirements:
* python >= 3.7 (written and tested with 3.9) * python >= 3.10 (written and tested with 3.11)
* numpy * numpy

View File

@ -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: