openlibrary
openlibrary copied to clipboard
Add typehints in openlibrary.accounts module
Related to #8028
Adds typehints to openlibrary.accounts module
Technical
Testing
Screenshot
Stakeholders
@scottbarnes
Hi! I've been very busy for the past few days but I can continue working on this now
Also monkeytype suggests adding typehints in ReadingLog innit like so:
def __init__(self, user: User | None = ...) -> None:
but then self.user could hypothetically be None but that wouldn't work with a lot of the methods like lists, booknotes_counts, reading_log_counts, count_shelf and get_works
And I'm not sure what to do about that
Thanks for this, @yivgen!