René's URL Explorer Experiment


Title: Add get_origin annotations by zmievsa · Pull Request #9811 · python/typeshed · GitHub

Open Graph Title: Add get_origin annotations by zmievsa · Pull Request #9811 · python/typeshed

X Title: Add get_origin annotations by zmievsa · Pull Request #9811 · python/typeshed

Description: Rationale When you know for a fact that you are using get_origin on a GenericAlias, your type checker will show you errors about the result being Any | None. These type hints attempt to fix this issue at least for the most common use cases. I tried handling every overload that was possible to handle but if you have any suggestions -- please, share them :) CI seems to be broken because not every import is available in earlier versions. Am thinking on how to handle it right now.

Open Graph Description: Rationale When you know for a fact that you are using get_origin on a GenericAlias, your type checker will show you errors about the result being Any | None. These type hints attempt to fix this is...

X Description: Rationale When you know for a fact that you are using get_origin on a GenericAlias, your type checker will show you errors about the result being Any | None. These type hints attempt to fix this is...

Opengraph URL: https://github.com/python/typeshed/pull/9811

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9fbac22e-5a8a-81a2-ce31-84b3d7e39eaa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idADE6:3E4AC7:225E595:2E8E46E:6B002427
html-safe-nonce81b9d9c7453ede5ac7ab0f6ce38cc70eb1ec93416ccb2e6ca463dfcee2aefcab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREU2OjNFNEFDNzoyMjVFNTk1OjJFOEU0NkU6NkIwMDI0MjciLCJ2aXNpdG9yX2lkIjoiODY0NzUxMDU2NzQyODMwMTg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6a8dc97c7b80bb84c4fa4e166c4c65b53824d3e5c59ea28bf1102b88ce37575f
hovercard-subject-tagpull_request:1253466790
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typeshed/pull/9811/files
twitter:imagehttps://avatars.githubusercontent.com/u/17561586?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17561586?s=400&v=4
og:image:altRationale When you know for a fact that you are using get_origin on a GenericAlias, your type checker will show you errors about the result being Any | None. These type hints attempt to fix this is...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/9811/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F9811%2Ffiles
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%2Ftypeshed%2Fpull%2F9811%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/9811/files
Reloadhttps://github.com/python/typeshed/pull/9811/files
Reloadhttps://github.com/python/typeshed/pull/9811/files
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/typeshed/tree/main
zmievsa:add-get-origin-annotationshttps://github.com/zmievsa/typeshed/tree/add-get-origin-annotations
Conversation 17 https://github.com/python/typeshed/pull/9811
Commits 17 https://github.com/python/typeshed/pull/9811/commits
Checks 0 https://github.com/python/typeshed/pull/9811/checks
Files changed https://github.com/python/typeshed/pull/9811/files
Please reload this pagehttps://github.com/python/typeshed/pull/9811/files
Add get_origin annotations https://github.com/python/typeshed/pull/9811/files#top
Show all changes 17 commits https://github.com/python/typeshed/pull/9811/files
87e8f58 Add get_origin annotations zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/87e8f58d4e2333a17bb4cdcca309e1f45f670757
da99bd6 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/da99bd6f9dcd466fa13426008c520a639da68bda
44fe739 Merge branch 'main' into add-get-origin-annotations zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/44fe7391eb1f3338dad90ba0cbce0ebee8d71c51
870ee63 Update stdlib/typing_extensions.pyi Ovsyanka83 Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/870ee631f0f60de6bebdad08f4dccfbe16e8dc04
1ebef53 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/1ebef5335b5cb6e7089650837bf0cd15fa389ee4
f274e90 Fixes after code review zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/f274e905d47bb53dc1f75811144c2fe4f078c590
6718114 Merge branch 'add-get-origin-annotations' of github.com:Ovsyanka83/ty… zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/671811435c4c1c1ee424aaf3d2d575fa3614c313
001adb2 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/001adb28816727e752d7771e549b1ca7e3d129db
887bf5b More code review fixes zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/887bf5b4c822e0e47915dbd283a5085558409ea9
130d3f7 Merge branch 'add-get-origin-annotations' of github.com:Ovsyanka83/ty… zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/130d3f75000eb00eaf64a3afb11a35de514105f9
7b2b9cb [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/7b2b9cba13d756fa5c0e869f16038f795972064c
7456d4d Fix double overloads zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/7456d4d6b9550666c68ed73c99aa22b259b470a4
0014633 Merge branch 'add-get-origin-annotations' of github.com:Ovsyanka83/ty… zmievsa Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/0014633115bdb16c6749980e7c832e67e30ebdde
6b791a4 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Feb 24, 2023 https://github.com/python/typeshed/pull/9811/commits/6b791a4ee31fb36c45fd579530edba112fbcd3b6
012db9f Add ParamSpec to get_origin in <3.9 zmievsa Feb 25, 2023 https://github.com/python/typeshed/pull/9811/commits/012db9f152135b4e502d2c6293a924d739eb42db
faa6646 [pre-commit.ci] auto fixes from pre-commit.com hooks pre-commit-ci[bot] Feb 25, 2023 https://github.com/python/typeshed/pull/9811/commits/faa6646f99fcf3766238b8f3a3fc426ccb6eaa7d
cdede57 Merge branch 'main' into add-get-origin-annotations zmievsa Feb 25, 2023 https://github.com/python/typeshed/pull/9811/commits/cdede57cdcb6aa3f2081d6a2e13971bbf99f35e2
Clear filters https://github.com/python/typeshed/pull/9811/files
Please reload this pagehttps://github.com/python/typeshed/pull/9811/files
Please reload this pagehttps://github.com/python/typeshed/pull/9811/files
typing.pyi https://github.com/python/typeshed/pull/9811/files#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
typing_extensions.pyi https://github.com/python/typeshed/pull/9811/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
stdlib/typing.pyihttps://github.com/python/typeshed/pull/9811/files#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
View file https://github.com/zmievsa/typeshed/blob/cdede57cdcb6aa3f2081d6a2e13971bbf99f35e2/stdlib/typing.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/9811/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/9811/files#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
https://github.com/python/typeshed/pull/9811/files#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
https://github.com/python/typeshed/pull/9811/files#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
https://github.com/python/typeshed/pull/9811/files#diff-b12c4be0f8e39f89957bbe7be6b6327185e18b69ea80a0f62c0746bb26f4a58e
stdlib/typing_extensions.pyihttps://github.com/python/typeshed/pull/9811/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
View file https://github.com/zmievsa/typeshed/blob/cdede57cdcb6aa3f2081d6a2e13971bbf99f35e2/stdlib/typing_extensions.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/9811/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/9811/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
https://github.com/python/typeshed/pull/9811/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
https://github.com/python/typeshed/pull/9811/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
https://github.com/python/typeshed/pull/9811/files#diff-3be2980942b6638326156e41234559ef7a770ab3c75f30c7d02261388f947cba
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.