Content-Length: 239769 | pFad | https://github.com/internetarchive/openlibrary/pull/9139

98 Improve type hints/signature of is_loaned_out by RayBB · Pull Request #9139 · internetarchive/openlibrary · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve type hints/signature of is_loaned_out #9139

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

RayBB
Copy link
Collaborator

@RayBB RayBB commented Apr 23, 2024

Closes #9118

Technical

Add typehints to the function to reflect what it actually returns.
Update the logic as mentioned here.

Testing

I'm not sure how to test this. But I expect that this is addressing an edge case that isn't too common.

Screenshot

Stakeholders

@mekarpeles

@RayBB RayBB added the Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] label Apr 23, 2024
@mekarpeles mekarpeles self-assigned this Apr 29, 2024
@mekarpeles mekarpeles merged commit 8e106b2 into master May 13, 2024
3 checks passed
@mekarpeles mekarpeles deleted the fix/is_loaned_out branch May 13, 2024 19:43
@cdrini cdrini changed the title improved is_loaned_out logic Improve type hints/signature of is_loaned_out May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should default return type for is_loaned_out_on_ia should be False not None?
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/internetarchive/openlibrary/pull/9139

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy