Open CoolCat467 opened 3 months ago
This pull request adds type annotations to the project and fixes a bug.
Bug is that currently, when reattempting to send, crashes from AttributeError because "Printer" objects are not indexable. https://github.com/opulo-inc/farm-upload/blob/73c363aa653e882104f44a029bf3e52edf28e5d9/src/FarmUpload.py#L114 I predict in an earlier version, printer details were stored purely in a dictionary, and this branch was missed when updating, and would have been caught with type checking.
@sphawes It's been a couple of months now, what is the status of this? Should I close this?
This pull request adds type annotations to the project and fixes a bug.
Bug is that currently, when reattempting to send, crashes from AttributeError because "Printer" objects are not indexable. https://github.com/opulo-inc/farm-upload/blob/73c363aa653e882104f44a029bf3e52edf28e5d9/src/FarmUpload.py#L114 I predict in an earlier version, printer details were stored purely in a dictionary, and this branch was missed when updating, and would have been caught with type checking.