openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Partial fix for #6755. Batch four of type hints from type annotations.

Open scottbarnes opened this issue 3 years ago • 0 comments

Partial fix for #6755

Refactor

Technical

Added more type hints from type annotations.

Testing

Although there is an assert at line 573 in addbook.py, this should not change runtime behavior because Mypy doesn't understand that self.edition won't be None in that branch of code, as if edition_data is not None, then self.edition is not None.

Screenshot

Stakeholders

@cclauss

scottbarnes avatar Sep 21 '22 21:09 scottbarnes