René's URL Explorer Experiment


Title: PackageMetadata.__getitem__ returns None · Issue #371 · python/importlib_metadata · GitHub

Open Graph Title: PackageMetadata.__getitem__ returns None · Issue #371 · python/importlib_metadata

X Title: PackageMetadata.__getitem__ returns None · Issue #371 · python/importlib_metadata

Description: The first problem is almost certainly a bug, the annotation for __getitem__ says it returns a str but it returns None if the metadata doesn't exist. https://github.com/python/importlib_metadata/blob/v4.11.2/importlib_metadata/_meta.py#L1...

Open Graph Description: The first problem is almost certainly a bug, the annotation for __getitem__ says it returns a str but it returns None if the metadata doesn't exist. https://github.com/python/importlib_metadata/blo...

X Description: The first problem is almost certainly a bug, the annotation for __getitem__ says it returns a str but it returns None if the metadata doesn't exist. https://github.com/python/importlib_metadata...

Opengraph URL: https://github.com/python/importlib_metadata/issues/371

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PackageMetadata.__getitem__ returns None","articleBody":"* The first problem is almost certainly a bug, the annotation for `__getitem__` says it returns a `str` but it returns `None` if the metadata doesn't exist. https://github.com/python/importlib_metadata/blob/v4.11.2/importlib_metadata/_meta.py#L15\r\n\r\n  For example:\r\n  ```python\r\n  from importlib.metadata import metadata\r\n  print(metadata(\"pip\")[\"asdfg\"] is None)  # True\r\n  ```\r\n\r\n(second problem moved to #374).","author":{"url":"https://github.com/saaketp","@type":"Person","name":"saaketp"},"datePublished":"2022-03-08T22:08:12Z","url":"https://github.com/python/importlib_metadata/issues/371"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b190171f-caad-b34e-5be0-f4051e7ec99c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD41C:2BEA87:DBBA9:13053D:6B0080D5
html-safe-nonce02437bcd280e333618b624e9d0f2cacf754ae0cda02cbd70e5a265c9aad69617
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDFDOjJCRUE4NzpEQkJBOToxMzA1M0Q6NkIwMDgwRDUiLCJ2aXNpdG9yX2lkIjoiNjEyNDY5MzMxODAyMzU0NTA0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac27059d844e2dbcdd2caf007b74198f5d8cb14aaaaca6916c7e7d3ede7848a860
hovercard-subject-tagissue:1163191888
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/importlib_metadata/371/issue_layout
twitter:imagehttps://opengraph.githubassets.com/82ecb64c78fc31d87c8564f256ba93e4085ae236335791daf01abeb51aa40804/python/importlib_metadata/issues/371
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/82ecb64c78fc31d87c8564f256ba93e4085ae236335791daf01abeb51aa40804/python/importlib_metadata/issues/371
og:image:altThe first problem is almost certainly a bug, the annotation for __getitem__ says it returns a str but it returns None if the metadata doesn't exist. https://github.com/python/importlib_metadata/blo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesaaketp
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
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
released1bc2aa1939001689f5ce935982c10a6138f745c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/importlib_metadata/issues/371#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fissues%2F371
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fissues%2F371
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fimportlib_metadata
Reloadhttps://github.com/python/importlib_metadata/issues/371
Reloadhttps://github.com/python/importlib_metadata/issues/371
Reloadhttps://github.com/python/importlib_metadata/issues/371
pythonhttps://github.com/python
importlib_metadatahttps://github.com/python/importlib_metadata
Codehttps://github.com/python/importlib_metadata
Issues8 (8)https://github.com/python/importlib_metadata/issues
Pull requests6 (6)https://github.com/python/importlib_metadata/pulls
Actionshttps://github.com/python/importlib_metadata/actions
Projectshttps://github.com/python/importlib_metadata/projects
Wikihttps://github.com/python/importlib_metadata/wiki
Security and qualityhttps://github.com/python/importlib_metadata/security
Insightshttps://github.com/python/importlib_metadata/insights
https://github.com/python/importlib_metadata
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_metadata/issues/371
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_metadata/issues/371
#416https://github.com/python/importlib_metadata/pull/416
PackageMetadata.__getitem__ returns Nonehttps://github.com/python/importlib_metadata/issues/371#top
#416https://github.com/python/importlib_metadata/pull/416
https://github.com/saaketp
saaketphttps://github.com/saaketp
on Mar 8, 2022https://github.com/python/importlib_metadata/issues/371#issue-1163191888
https://github.com/python/importlib_metadata/blob/v4.11.2/importlib_metadata/_meta.py#L15https://github.com/python/importlib_metadata/blob/v4.11.2/importlib_metadata/_meta.py#L15
#374https://github.com/python/importlib_metadata/issues/374
jaracohttps://github.com/jaraco
on Mar 12, 2022https://github.com/python/importlib_metadata/issues/371#event-6230180834
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 12, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1065954537
@saaketphttps://github.com/saaketp
email.message.EmailMessagehttps://docs.python.org/3/library/email.message.html#email.message.EmailMessage
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 12, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1065955698
@warsawhttps://github.com/warsaw
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 12, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1065957438
the return type is declaredhttps://github.com/python/importlib_metadata/blob/14cce75299645467adcd17352cb07caada32c444/importlib_metadata/__init__.py#L585
subclass of a class that violates that declarationhttps://github.com/python/importlib_metadata/blob/14cce75299645467adcd17352cb07caada32c444/importlib_metadata/_adapters.py#L8
typeshed underdefines the return typehttps://github.com/python/typeshed/blob/a5ddf0bf0d84beb9081fc3d3cfde2991585f1da5/stdlib/email/message.pyi#L34
https://github.com/saaketp
saaketphttps://github.com/saaketp
on Mar 12, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1065974636
python/typeshed#2863https://github.com/python/typeshed/issues/2863
https://github.com/DMRobertson
DMRobertsonhttps://github.com/DMRobertson
on Mar 18, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1072674257
bpo-47060https://bugs.python.org/issue47060
python/cpython#91216https://github.com/python/cpython/issues/91216
python/typeshed#7513https://github.com/python/typeshed/issues/7513
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 19, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1073066867
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 19, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1073069322
614a522https://github.com/python/importlib_metadata/commit/614a522b9e58fd85dd1a74b6823f714a40ad1a11
https://github.com/jaraco
jaracohttps://github.com/jaraco
on May 21, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1133664947
jaracohttps://github.com/jaraco
on Dec 17, 2022https://github.com/python/importlib_metadata/issues/371#event-8062967586
Add test capturing that a missing key raises a KeyError. Ref #371.https://github.com/python/importlib_metadata/commit/f2e9c39bb2d91ed57e92d55e82feb70daade6b2a
#371https://github.com/python/importlib_metadata/issues/371
f2e9c39https://github.com/python/importlib_metadata/commit/f2e9c39bb2d91ed57e92d55e82feb70daade6b2a
When requesting an item from metadata, if it's not present, raise a K…https://github.com/python/importlib_metadata/commit/19fa35a5dec5b1cc2b6883581f17c80f6d7c9b97
19fa35ahttps://github.com/python/importlib_metadata/commit/19fa35a5dec5b1cc2b6883581f17c80f6d7c9b97
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_metadata/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#416https://github.com/python/importlib_metadata/pull/416
on Dec 18, 2022https://github.com/python/importlib_metadata/issues/371#event-8063151922
jaracohttps://github.com/jaraco
on Dec 18, 2022https://github.com/python/importlib_metadata/issues/371#event-8064237485
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Dec 18, 2022https://github.com/python/importlib_metadata/issues/371#issuecomment-1356836262
release process failedhttps://github.com/python/importlib_metadata/actions/runs/3722907257/jobs/6314136479
relying on __getitem__ returning Nonehttps://github.com/pypa/twine/blob/f001a7ea89b8496a3c9145cfe2eda4c3d6a19144/twine/__init__.py#L43
jaracohttps://github.com/jaraco
on Dec 18, 2022https://github.com/python/importlib_metadata/issues/371#event-8064274610
Add test capturing that a missing key raises a KeyError. Ref #371.https://github.com/python/importlib_metadata/commit/51c0c85518f0acdeca1f021ac7c790788757d6c4
#371https://github.com/python/importlib_metadata/issues/371
51c0c85https://github.com/python/importlib_metadata/commit/51c0c85518f0acdeca1f021ac7c790788757d6c4
When requesting an item from metadata, if it's not present, raise a K…https://github.com/python/importlib_metadata/commit/a7eb4ba9bdd2dc23dc5e583371537559d247ceeb
a7eb4bahttps://github.com/python/importlib_metadata/commit/a7eb4ba9bdd2dc23dc5e583371537559d247ceeb
Mark `PackageMetadata.__getitem__` as deprecated for missing values. …https://github.com/python/importlib_metadata/commit/880a6219a16911817214827020f272b4b03b54b4
880a621https://github.com/python/importlib_metadata/commit/880a6219a16911817214827020f272b4b03b54b4
rominfhttps://github.com/rominf
on Jul 5, 2023https://github.com/python/importlib_metadata/issues/371#event-9729825632
Skip distributions with incomplete metadatahttps://github.com/rominf/sentry-python/commit/06f6d87585e054f2455c4150a50365d6dba8ba94
06f6d87https://github.com/rominf/sentry-python/commit/06f6d87585e054f2455c4150a50365d6dba8ba94
Skip distributions with incomplete metadatahttps://github.com/rominf/sentry-python/commit/6b73d642b47c29230cca052189e6760540563391
6b73d64https://github.com/rominf/sentry-python/commit/6b73d642b47c29230cca052189e6760540563391
antonpirkerhttps://github.com/antonpirker
on Jul 12, 2023https://github.com/python/importlib_metadata/issues/371#event-9796846827
Skip distributions with incomplete metadata (#2231)https://github.com/getsentry/sentry-python/commit/5704f1241005f51d10ea7fb947be026cb2c563e0
#2231https://github.com/getsentry/sentry-python/pull/2231
5704f12https://github.com/getsentry/sentry-python/commit/5704f1241005f51d10ea7fb947be026cb2c563e0
https://github.com/encukou
encukouhttps://github.com/encukou
on Oct 3, 2023https://github.com/python/importlib_metadata/issues/371#issuecomment-1744642859
@hroncokhttps://github.com/hroncok
https://github.com/int19h
int19hhttps://github.com/int19h
on Feb 23, 2024https://github.com/python/importlib_metadata/issues/371#issuecomment-1961846894
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Mar 20, 2024https://github.com/python/importlib_metadata/issues/371#issuecomment-2009054197
jaracohttps://github.com/jaraco
on Jun 23, 2024https://github.com/python/importlib_metadata/issues/371#event-13257782395
Message.__getitem__ now raises a KeyError on missing keys.https://github.com/python/importlib_metadata/commit/a970a491b56a3bf529821ce21867af4573cf2e0d
a970a49https://github.com/python/importlib_metadata/commit/a970a491b56a3bf529821ce21867af4573cf2e0d
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Jun 23, 2024https://github.com/python/importlib_metadata/issues/371#issuecomment-2185334746
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_metadata/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 23, 2024https://github.com/python/importlib_metadata/issues/371#event-13258401717
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/importlib_metadata/issues/371
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/importlib_metadata/issues/371
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.