René's URL Explorer Experiment


Title: Adopt "more sound" type annotations by abravalheri · Pull Request #487 · python/importlib_metadata · GitHub

Open Graph Title: Adopt "more sound" type annotations by abravalheri · Pull Request #487 · python/importlib_metadata

X Title: Adopt "more sound" type annotations by abravalheri · Pull Request #487 · python/importlib_metadata

Description: Motivated by #486. This PR just provides more realistic type annotations1 to improve the type checking soundness of the package. It does not solve #486: all the limitations are still present, but a...

Open Graph Description: Motivated by #486. This PR just provides more realistic type annotations1 to improve the type checking soundness of the package. It does not solve #486: all the limitations are still present, but a...

X Description: Motivated by #486. This PR just provides more realistic type annotations1 to improve the type checking soundness of the package. It does not solve #486: all the limitations are still present, but a...

Opengraph URL: https://github.com/python/importlib_metadata/pull/487

X: @github

direct link

Domain: github.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:17cf9df9-6591-5b43-9550-0f7f336ef3da
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AAE:36585F:106A7CB:16B4FFD:696A945E
html-safe-noncedd43fb8394aab2137b4ed98e0028b3f80a4a0b79c0175137bcc96ef1f07e7248
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUFFOjM2NTg1RjoxMDZBN0NCOjE2QjRGRkQ6Njk2QTk0NUUiLCJ2aXNpdG9yX2lkIjoiNDM2OTU3NDA3Mzg5MzI0MzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac38c8781c1cd2fa9b0d1768524bd67c00e528db5e211d3272539737e39140b866
hovercard-subject-tagpull_request:1851171698
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/python/importlib_metadata/487/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2ab3ea62a2656b0442ddd79b4b5e923e31c0e870e44aa29ea19a893726b773f4/python/importlib_metadata/pull/487
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ab3ea62a2656b0442ddd79b4b5e923e31c0e870e44aa29ea19a893726b773f4/python/importlib_metadata/pull/487
og:image:altMotivated by #486. This PR just provides more realistic type annotations1 to improve the type checking soundness of the package. It does not solve #486: all the limitations are still present, but a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameabravalheri
hostnamegithub.com
expected-hostnamegithub.com
None4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7
turbo-cache-controlno-preview
go-importgithub.com/python/importlib_metadata git https://github.com/python/importlib_metadata.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id306448340
octolytics-dimension-repository_nwopython/importlib_metadata
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id306448340
octolytics-dimension-repository_network_root_nwopython/importlib_metadata
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
release31496a13b80a2f6ad77d6c617ee2255a3545b539
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/importlib_metadata/pull/487#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fpull%2F487
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fpull%2F487
Sign up https://github.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=python%2Fimportlib_metadata
Reloadhttps://github.com/python/importlib_metadata/pull/487
Reloadhttps://github.com/python/importlib_metadata/pull/487
Reloadhttps://github.com/python/importlib_metadata/pull/487
python https://github.com/python
importlib_metadatahttps://github.com/python/importlib_metadata
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
Notifications https://github.com/login?return_to=%2Fpython%2Fimportlib_metadata
Fork 94 https://github.com/login?return_to=%2Fpython%2Fimportlib_metadata
Star 138 https://github.com/login?return_to=%2Fpython%2Fimportlib_metadata
Code https://github.com/python/importlib_metadata
Issues 11 https://github.com/python/importlib_metadata/issues
Pull requests 3 https://github.com/python/importlib_metadata/pulls
Actions https://github.com/python/importlib_metadata/actions
Projects 0 https://github.com/python/importlib_metadata/projects
Wiki https://github.com/python/importlib_metadata/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/importlib_metadata/security
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
Insights https://github.com/python/importlib_metadata/pulse
Code https://github.com/python/importlib_metadata
Issues https://github.com/python/importlib_metadata/issues
Pull requests https://github.com/python/importlib_metadata/pulls
Actions https://github.com/python/importlib_metadata/actions
Projects https://github.com/python/importlib_metadata/projects
Wiki https://github.com/python/importlib_metadata/wiki
Security https://github.com/python/importlib_metadata/security
Insights https://github.com/python/importlib_metadata/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fimportlib_metadata%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fimportlib_metadata%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/importlib_metadata/pull/487#issue-comment-box
abravalherihttps://github.com/abravalheri
python:mainhttps://github.com/python/importlib_metadata/tree/main
abravalheri:issue-486https://github.com/abravalheri/importlib_metadata/tree/issue-486
Adopt "more sound" type annotations https://github.com/python/importlib_metadata/pull/487#top
abravalherihttps://github.com/abravalheri
python:mainhttps://github.com/python/importlib_metadata/tree/main
abravalheri:issue-486https://github.com/abravalheri/importlib_metadata/tree/issue-486
Conversation 8 https://github.com/python/importlib_metadata/pull/487
Commits 6 https://github.com/python/importlib_metadata/pull/487/commits
Checks 0 https://github.com/python/importlib_metadata/pull/487/checks
Files changed 3 https://github.com/python/importlib_metadata/pull/487/files
https://github.co/hiddenchars
https://github.com/python/importlib_metadata/pull/{{ revealButtonHref }}
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
May 2, 2024https://github.com/python/importlib_metadata/pull/487#issue-2275150276
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
#486https://github.com/python/importlib_metadata/issues/486
1https://github.com/python/importlib_metadata/pull/487#user-content-fn-1-b1bc715a05fd715eb134b4ee29745b17
#486https://github.com/python/importlib_metadata/issues/486
https://github.com/python/importlib_metadata/pull/487#user-content-fnref-1-b1bc715a05fd715eb134b4ee29745b17
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
May 2, 2024https://github.com/python/importlib_metadata/pull/487#event-12680881892
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
May 2, 2024 10:44https://github.com/python/importlib_metadata/pull/487#event-12681197848
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jun 23, 2024https://github.com/python/importlib_metadata/pull/487#issuecomment-2184268125
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
abravalherihttps://github.com/abravalheri
June 24, 2024 09:47https://github.com/python/importlib_metadata/pull/487#commits-pushed-3a90a8d
https://github.com/abravalheri
Use more realistic return typeshttps://github.com/python/importlib_metadata/pull/487/commits/3a90a8d160074817f636271cafe1ae559225b1c3
3a90a8dhttps://github.com/python/importlib_metadata/pull/487/commits/3a90a8d160074817f636271cafe1ae559225b1c3
https://github.com/abravalheri
Use type check guard for legacy annotationshttps://github.com/python/importlib_metadata/pull/487/commits/c1612ec7b9aeb5b1625998d80b0165aeb460d86b
c1612echttps://github.com/python/importlib_metadata/pull/487/commits/c1612ec7b9aeb5b1625998d80b0165aeb460d86b
https://github.com/abravalheri
Fix type annotation for Python 3.10+https://github.com/python/importlib_metadata/pull/487/commits/e30d8f7411cc4bf6dae71e6964608ab55994058d
e30d8f7https://github.com/python/importlib_metadata/pull/487/commits/e30d8f7411cc4bf6dae71e6964608ab55994058d
https://github.com/abravalheri
Fix warnings in sphinx docshttps://github.com/python/importlib_metadata/pull/487/commits/2044db14985aa1fb8fdceadef5511c3fe93e76cb
2044db1https://github.com/python/importlib_metadata/pull/487/commits/2044db14985aa1fb8fdceadef5511c3fe93e76cb
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
force-pushedhttps://github.com/python/importlib_metadata/compare/99ef61afadf4b13bee2c2cc55f2335073cd6a55c..77eb71e94950976eb1cb9a7d34db0213cc882bbd
99ef61ahttps://github.com/python/importlib_metadata/commit/99ef61afadf4b13bee2c2cc55f2335073cd6a55c
77eb71ehttps://github.com/python/importlib_metadata/commit/77eb71e94950976eb1cb9a7d34db0213cc882bbd
Compare https://github.com/python/importlib_metadata/compare/99ef61afadf4b13bee2c2cc55f2335073cd6a55c..77eb71e94950976eb1cb9a7d34db0213cc882bbd
June 24, 2024 09:33https://github.com/python/importlib_metadata/pull/487#event-13263313571
https://github.com/abravalheri
Move code specific to backport to compat modulehttps://github.com/python/importlib_metadata/pull/487/commits/4fe96a47c28e257596808847666f7c1e1b81de96
4fe96a4https://github.com/python/importlib_metadata/pull/487/commits/4fe96a47c28e257596808847666f7c1e1b81de96
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
force-pushedhttps://github.com/python/importlib_metadata/compare/77eb71e94950976eb1cb9a7d34db0213cc882bbd..4fe96a47c28e257596808847666f7c1e1b81de96
77eb71ehttps://github.com/python/importlib_metadata/commit/77eb71e94950976eb1cb9a7d34db0213cc882bbd
4fe96a4https://github.com/python/importlib_metadata/commit/4fe96a47c28e257596808847666f7c1e1b81de96
Compare https://github.com/python/importlib_metadata/compare/77eb71e94950976eb1cb9a7d34db0213cc882bbd..4fe96a47c28e257596808847666f7c1e1b81de96
June 24, 2024 09:41https://github.com/python/importlib_metadata/pull/487#event-13263429237
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
Jun 24, 2024https://github.com/python/importlib_metadata/pull/487#issuecomment-2186065783
@jaracohttps://github.com/jaraco
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
https://github.com/abravalheri
abravalherihttps://github.com/abravalheri
Jun 24, 2024 https://github.com/python/importlib_metadata/pull/487#pullrequestreview-2135246321
View reviewed changes https://github.com/python/importlib_metadata/pull/487/files/4fe96a47c28e257596808847666f7c1e1b81de96
importlib_metadata/compat/stdlib.pyhttps://github.com/python/importlib_metadata/pull/487/files/4fe96a47c28e257596808847666f7c1e1b81de96#diff-5b40a01ae9454472f65362d2d9a614c9d3f31655fc04fffe3a562ac21e0a83f2
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
https://github.com/abravalheri
Workaround sphinx limitationshttps://github.com/python/importlib_metadata/pull/487/commits/c86976d79bdf1809b99752e883924741d782740d
c86976dhttps://github.com/python/importlib_metadata/pull/487/commits/c86976d79bdf1809b99752e883924741d782740d
https://github.com/jaraco
jaracohttps://github.com/jaraco
Jun 24, 2024 https://github.com/python/importlib_metadata/pull/487#ref-issue-2274973767
API incompatibility with importlib.metadata (or at least the API is not type-safe?) #486 https://github.com/python/importlib_metadata/issues/486
https://github.com/jaraco
jaracohttps://github.com/jaraco
Sep 11, 2024 https://github.com/python/importlib_metadata/pull/487#pullrequestreview-2297721018
View reviewed changes https://github.com/python/importlib_metadata/pull/487/files/c86976d79bdf1809b99752e883924741d782740d
importlib_metadata/compat/stdlib.pyhttps://github.com/python/importlib_metadata/pull/487/files/c86976d79bdf1809b99752e883924741d782740d#diff-5b40a01ae9454472f65362d2d9a614c9d3f31655fc04fffe3a562ac21e0a83f2
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
https://github.com/jaraco
jaracohttps://github.com/jaraco
Sep 11, 2024 https://github.com/python/importlib_metadata/pull/487#ref-pullrequest-2520157232
Enforce local versions of objects and introduce shared protocols #505 https://github.com/python/importlib_metadata/pull/505
https://github.com/jaraco
jaracohttps://github.com/jaraco
Nov 22, 2025https://github.com/python/importlib_metadata/pull/487#issuecomment-3566854289
#486https://github.com/python/importlib_metadata/issues/486
#505https://github.com/python/importlib_metadata/pull/505
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
https://github.com/jaraco
jaracohttps://github.com/jaraco
Nov 22, 2025https://github.com/python/importlib_metadata/pull/487#event-21115912992
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fpull%2F487
https://github.com/jaraco
jaraco https://github.com/jaraco
https://github.com/python/importlib_metadata/pull/487/files/c86976d79bdf1809b99752e883924741d782740d
Please reload this pagehttps://github.com/python/importlib_metadata/pull/487
https://github.com/abravalheri
https://github.com/jaraco
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.