René's URL Explorer Experiment


Title: Add proper typing @overload to `zimscraperlib.image.optimize_xxx` methods by benoit74 · Pull Request #273 · openzim/python-scraperlib · GitHub

Open Graph Title: Add proper typing @overload to `zimscraperlib.image.optimize_xxx` methods by benoit74 · Pull Request #273 · openzim/python-scraperlib

X Title: Add proper typing @overload to `zimscraperlib.image.optimize_xxx` methods by benoit74 · Pull Request #273 · openzim/python-scraperlib

Description: Type hints could be more precise thanks to @overload python feature (see https://typing.python.org/en/latest/spec/overload.html)

Open Graph Description: Type hints could be more precise thanks to @overload python feature (see https://typing.python.org/en/latest/spec/overload.html)

X Description: Type hints could be more precise thanks to @overload python feature (see https://typing.python.org/en/latest/spec/overload.html)

Opengraph URL: https://github.com/openzim/python-scraperlib/pull/273

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0d83299f-0d57-9a48-67f4-b7422f4e9569
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBAA6:1D96F5:64D99:8336D:698E98C9
html-safe-noncee0ce191768013124c029decbbf700f6c76277064607a03c3bcb506784f351b56
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUE2OjFEOTZGNTo2NEQ5OTo4MzM2RDo2OThFOThDOSIsInZpc2l0b3JfaWQiOiI4NTQ3MDk0MDk0NTg0NjQ5OTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace408b2b102e1a638d48adcb936d7f2324bd3a28ae66f30dd0955c4c9bd68ffe6
hovercard-subject-tagpull_request:3063627363
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/openzim/python-scraperlib/273/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6ff4eb93874ba2c2f157f9acafabcb467523a7b7fc8dda06112b9e2df608f226/openzim/python-scraperlib/pull/273
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6ff4eb93874ba2c2f157f9acafabcb467523a7b7fc8dda06112b9e2df608f226/openzim/python-scraperlib/pull/273
og:image:altType hints could be more precise thanks to @overload python feature (see https://typing.python.org/en/latest/spec/overload.html)
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebenoit74
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
go-importgithub.com/openzim/python-scraperlib git https://github.com/openzim/python-scraperlib.git
octolytics-dimension-user_id26540839
octolytics-dimension-user_loginopenzim
octolytics-dimension-repository_id237924365
octolytics-dimension-repository_nwoopenzim/python-scraperlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id237924365
octolytics-dimension-repository_network_root_nwoopenzim/python-scraperlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenzim%2Fpython-scraperlib%2Fpull%2F273
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenzim%2Fpython-scraperlib%2Fpull%2F273
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=openzim%2Fpython-scraperlib
Reloadhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
Reloadhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
Reloadhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
openzim https://patch-diff.githubusercontent.com/openzim
python-scraperlibhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fopenzim%2Fpython-scraperlib
Fork 19 https://patch-diff.githubusercontent.com/login?return_to=%2Fopenzim%2Fpython-scraperlib
Star 25 https://patch-diff.githubusercontent.com/login?return_to=%2Fopenzim%2Fpython-scraperlib
Code https://patch-diff.githubusercontent.com/openzim/python-scraperlib
Issues 21 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/issues
Pull requests 4 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pulls
Actions https://patch-diff.githubusercontent.com/openzim/python-scraperlib/actions
Projects 0 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/projects
Wiki https://patch-diff.githubusercontent.com/openzim/python-scraperlib/wiki
Security 0 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/security
Insights https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pulse
Code https://patch-diff.githubusercontent.com/openzim/python-scraperlib
Issues https://patch-diff.githubusercontent.com/openzim/python-scraperlib/issues
Pull requests https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pulls
Actions https://patch-diff.githubusercontent.com/openzim/python-scraperlib/actions
Projects https://patch-diff.githubusercontent.com/openzim/python-scraperlib/projects
Wiki https://patch-diff.githubusercontent.com/openzim/python-scraperlib/wiki
Security https://patch-diff.githubusercontent.com/openzim/python-scraperlib/security
Insights https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fopenzim%2Fpython-scraperlib%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fopenzim%2Fpython-scraperlib%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#issue-comment-box
benoit74https://patch-diff.githubusercontent.com/benoit74
mainhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/tree/main
add_overloadshttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/tree/add_overloads
Add proper typing @overload to zimscraperlib.image.optimize_xxx methods https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#top
benoit74https://patch-diff.githubusercontent.com/benoit74
mainhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/tree/main
add_overloadshttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/tree/add_overloads
Conversation 4 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
Commits 1 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/commits
Checks 9 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/checks
Files changed https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
Dec 2, 2025https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#issue-3685915278
https://typing.python.org/en/latest/spec/overload.htmlhttps://typing.python.org/en/latest/spec/overload.html
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
Dec 2, 2025https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#event-21306369417
https://patch-diff.githubusercontent.com/apps/codecov
codecovhttps://patch-diff.githubusercontent.com/apps/codecov
Dec 2, 2025https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#issuecomment-3602146491
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
Codecovhttps://app.codecov.io/gh/openzim/python-scraperlib/pull/273?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
26e3ab1https://app.codecov.io/gh/openzim/python-scraperlib/commit/26e3ab16e8f6d82c5d0723dfcaf09fe9f23663b6?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
1893e14https://app.codecov.io/gh/openzim/python-scraperlib/commit/1893e14d1021c56047b597ad333f46d855fa51be?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
Files with missing lineshttps://app.codecov.io/gh/openzim/python-scraperlib/pull/273?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
src/zimscraperlib/image/optimization.pyhttps://app.codecov.io/gh/openzim/python-scraperlib/pull/273?src=pr&el=tree&filepath=src%2Fzimscraperlib%2Fimage%2Foptimization.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim#diff-c3JjL3ppbXNjcmFwZXJsaWIvaW1hZ2Uvb3B0aW1pemF0aW9uLnB5
6 Missing ⚠️ https://app.codecov.io/gh/openzim/python-scraperlib/pull/273?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/openzim/python-scraperlib/pull/273?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openzim
Test Analyticshttps://docs.codecov.com/docs/test-analytics
JS Bundle Analysishttps://docs.codecov.com/docs/javascript-bundle-analysis
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
rgaudinhttps://patch-diff.githubusercontent.com/rgaudin
December 2, 2025 13:54https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#event-21306744986
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
5.4.0https://patch-diff.githubusercontent.com/openzim/python-scraperlib/milestone/16
Dec 2, 2025https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#event-21306746666
https://patch-diff.githubusercontent.com/rgaudin
rgaudinhttps://patch-diff.githubusercontent.com/rgaudin
Dec 2, 2025 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#pullrequestreview-3530290577
View reviewed changes https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/files
rgaudinhttps://patch-diff.githubusercontent.com/rgaudin
https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#pullrequestreview-3530290577
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
Add proper typinghttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/commits/1893e14d1021c56047b597ad333f46d855fa51be
@overloadhttps://github.com/overload
to methodshttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/commits/1893e14d1021c56047b597ad333f46d855fa51be
1893e14https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/commits/1893e14d1021c56047b597ad333f46d855fa51be
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
force-pushedhttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/compare/b85376395eb4f340a8f758aa594f81cbf068e6a2..1893e14d1021c56047b597ad333f46d855fa51be
b853763https://patch-diff.githubusercontent.com/openzim/python-scraperlib/commit/b85376395eb4f340a8f758aa594f81cbf068e6a2
1893e14https://patch-diff.githubusercontent.com/openzim/python-scraperlib/commit/1893e14d1021c56047b597ad333f46d855fa51be
Compare https://patch-diff.githubusercontent.com/openzim/python-scraperlib/compare/b85376395eb4f340a8f758aa594f81cbf068e6a2..1893e14d1021c56047b597ad333f46d855fa51be
December 2, 2025 14:46https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#event-21308016512
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
Dec 2, 2025https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#issuecomment-3602421667
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
Dec 2, 2025https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#issuecomment-3602432519
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
9904777https://patch-diff.githubusercontent.com/openzim/python-scraperlib/commit/99047776f5998ef4244a78afb5499e2c23890c70
Dec 2, 2025https://github.com/openzim/python-scraperlib/pull/273#event-21308099612
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
benoit74https://patch-diff.githubusercontent.com/benoit74
December 2, 2025 14:49https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273#event-21308100457
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenzim%2Fpython-scraperlib%2Fpull%2F273
https://patch-diff.githubusercontent.com/rgaudin
rgaudin https://patch-diff.githubusercontent.com/rgaudin
https://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273/files/b85376395eb4f340a8f758aa594f81cbf068e6a2
https://patch-diff.githubusercontent.com/benoit74
benoit74 https://patch-diff.githubusercontent.com/benoit74
5.4.0 https://patch-diff.githubusercontent.com/openzim/python-scraperlib/milestone/16
Please reload this pagehttps://patch-diff.githubusercontent.com/openzim/python-scraperlib/pull/273
https://patch-diff.githubusercontent.com/benoit74
https://patch-diff.githubusercontent.com/rgaudin
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.