René's URL Explorer Experiment


Title: ref: Define types at runtime by szokeasaurusrex · Pull Request #2914 · getsentry/sentry-python · GitHub

Open Graph Title: ref: Define types at runtime by szokeasaurusrex · Pull Request #2914 · getsentry/sentry-python

X Title: ref: Define types at runtime by szokeasaurusrex · Pull Request #2914 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Set types in sentry_sdk.types to None at runtime. This allows the types to be imported from outside if TYPE_CHECKING guards. Fixes GH-2909

X Description: Set types in sentry_sdk.types to None at runtime. This allows the types to be imported from outside if TYPE_CHECKING guards. Fixes GH-2909

Opengraph URL: https://github.com/getsentry/sentry-python/pull/2914

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/_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:c13ae0e0-46f4-6b05-3bb0-b0753314ebb6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE12:29CC02:20C519:2D78C5:6B008596
html-safe-noncec79d263d0138310b887f89a394b6eff0f5753d01a51fabf844c4e48b80b34cdc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTEyOjI5Q0MwMjoyMEM1MTk6MkQ3OEM1OjZCMDA4NTk2IiwidmlzaXRvcl9pZCI6IjgyODgzMDU0NTcyNzgyNTY1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0c80dfdd6fd3c7d4ddbad2ee04509442ebc0067502ed262c0b70a4b5757c0b38
hovercard-subject-tagpull_request:1794038284
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/getsentry/sentry-python/2914/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8834d9c9ca1242563ed90c11a70dc1cfeac67198fbfde81cc84eaae3c6164424/getsentry/sentry-python/pull/2914
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8834d9c9ca1242563ed90c11a70dc1cfeac67198fbfde81cc84eaae3c6164424/getsentry/sentry-python/pull/2914
og:image:altSet types in sentry_sdk.types to None at runtime. This allows the types to be imported from outside if TYPE_CHECKING guards. Fixes GH-2909
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameszokeasaurusrex
hostnamegithub.com
expected-hostnamegithub.com
None4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
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
releasedb758f8e02b8257935fb03edf81a3e76eb3abd11
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/2914#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F2914
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%2Fgetsentry%2Fsentry-python%2Fpull%2F2914
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/pull/2914
Reloadhttps://github.com/getsentry/sentry-python/pull/2914
Reloadhttps://github.com/getsentry/sentry-python/pull/2914
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests41 (41)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
szokeasaurusrexhttps://github.com/szokeasaurusrex
masterhttps://github.com/getsentry/sentry-python/tree/master
szokeasaurusrex/define-types-at-runtimehttps://github.com/getsentry/sentry-python/tree/szokeasaurusrex/define-types-at-runtime
Conversationhttps://github.com/getsentry/sentry-python/pull/2914
Commits5 (5)https://github.com/getsentry/sentry-python/pull/2914/commits
Checkshttps://github.com/getsentry/sentry-python/pull/2914/checks
Files changedhttps://github.com/getsentry/sentry-python/pull/2914/files
ref: Define types at runtimehttps://github.com/getsentry/sentry-python/pull/2914#top
szokeasaurusrexhttps://github.com/szokeasaurusrex
masterhttps://github.com/getsentry/sentry-python/tree/master
szokeasaurusrex/define-types-at-runtimehttps://github.com/getsentry/sentry-python/tree/szokeasaurusrex/define-types-at-runtime
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
Mar 27, 2024https://github.com/getsentry/sentry-python/pull/2914#issue-2210890953
GH-2909https://github.com/getsentry/sentry-python/issues/2909
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/2914
antonpirkerhttps://github.com/antonpirker
March 27, 2024 14:41https://github.com/getsentry/sentry-python/pull/2914#commits-pushed-86fdea0
https://github.com/antonpirker
https://github.com/szokeasaurusrex
Explicit reexport of types (https://github.com/getsentry/sentry-python/pull/2914/commits/86fdea01f2c3640fbf82dd7aaf923ad9e7bf0ede
#2866https://github.com/getsentry/sentry-python/pull/2866
)https://github.com/getsentry/sentry-python/pull/2914/commits/86fdea01f2c3640fbf82dd7aaf923ad9e7bf0ede
86fdea0https://github.com/getsentry/sentry-python/pull/2914/commits/86fdea01f2c3640fbf82dd7aaf923ad9e7bf0ede
https://github.com/szokeasaurusrex
ref: Define types at runtimehttps://github.com/getsentry/sentry-python/pull/2914/commits/fe5d54ac55fbd0214fd7c2f703af0ef344cce709
fe5d54ahttps://github.com/getsentry/sentry-python/pull/2914/commits/fe5d54ac55fbd0214fd7c2f703af0ef344cce709
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
March 27, 2024 14:02https://github.com/getsentry/sentry-python/pull/2914#event-12266284413
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
asottile-sentryhttps://github.com/asottile-sentry
sentrivanahttps://github.com/sentrivana
March 27, 2024 14:02https://github.com/getsentry/sentry-python/pull/2914#event-12266288263
https://github.com/asottile-sentry
asottile-sentryhttps://github.com/asottile-sentry
Mar 27, 2024 https://github.com/getsentry/sentry-python/pull/2914#pullrequestreview-1963440553
View reviewed changes https://github.com/getsentry/sentry-python/pull/2914/files/fe5d54ac55fbd0214fd7c2f703af0ef344cce709
sentry_sdk/types.pyhttps://github.com/getsentry/sentry-python/pull/2914/files/fe5d54ac55fbd0214fd7c2f703af0ef344cce709#diff-447996f25ddcb65862dfa46b51cd54581a21139ce5676c0c4623582a4d037c16
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/2914
sentry_sdk/types.pyhttps://github.com/getsentry/sentry-python/pull/2914/files/fe5d54ac55fbd0214fd7c2f703af0ef344cce709#diff-447996f25ddcb65862dfa46b51cd54581a21139ce5676c0c4623582a4d037c16
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/2914
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
Mar 27, 2024 https://github.com/getsentry/sentry-python/pull/2914#ref-pullrequest-2210844870
ref: Explicit reexport of types (backport to 1.x) #2913 https://github.com/getsentry/sentry-python/pull/2913
szokeasaurusrexhttps://github.com/szokeasaurusrex
March 27, 2024 15:05https://github.com/getsentry/sentry-python/pull/2914#commits-pushed-4c33d43
https://github.com/szokeasaurusrex
https://github.com/asottile-sentry
Update sentry_sdk/types.pyhttps://github.com/getsentry/sentry-python/pull/2914/commits/4c33d434b455d2048d804dfab30bdb715dc0eed7
4c33d43https://github.com/getsentry/sentry-python/pull/2914/commits/4c33d434b455d2048d804dfab30bdb715dc0eed7
https://github.com/szokeasaurusrex
Remove noqa commenthttps://github.com/getsentry/sentry-python/pull/2914/commits/03a3e2d4003efe33e12bb77cda81af0191922ab7
03a3e2dhttps://github.com/getsentry/sentry-python/pull/2914/commits/03a3e2d4003efe33e12bb77cda81af0191922ab7
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
asottile-sentryhttps://github.com/asottile-sentry
March 27, 2024 14:06https://github.com/getsentry/sentry-python/pull/2914#event-12266360193
https://github.com/asottile-sentry
asottile-sentryhttps://github.com/asottile-sentry
Mar 27, 2024 https://github.com/getsentry/sentry-python/pull/2914#pullrequestreview-1963455000
View reviewed changes https://github.com/getsentry/sentry-python/pull/2914/files/03a3e2d4003efe33e12bb77cda81af0191922ab7
asottile-sentryhttps://github.com/asottile-sentry
https://github.com/getsentry/sentry-python/pull/2914#pullrequestreview-1963455000
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/614d0be849a9e7e43e93861404f5ea3951c18bac5c6eed2201c0dae06fcfb1f9/68747470733a2f2f692e666c756666792e63632f71487a66634236425a395a44374b3377466b6e714c737248717371353662504d2e676966
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/2914
March 27, 2024 14:15https://github.com/getsentry/sentry-python/pull/2914#event-12266498148
https://github.com/szokeasaurusrex
Merge remote-tracking branch 'origin/master' into szokeasaurusrex/def…https://github.com/getsentry/sentry-python/pull/2914/commits/82c405bd17c79d40c08031435ad07fe7f7ec3af4
82c405bhttps://github.com/getsentry/sentry-python/pull/2914/commits/82c405bd17c79d40c08031435ad07fe7f7ec3af4
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
March 27, 2024 14:18https://github.com/getsentry/sentry-python/pull/2914#event-12266538640
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
6c2eb53https://github.com/getsentry/sentry-python/commit/6c2eb539f7b8ebb0f2fa9ed05cce4f862843eb9d
Mar 27, 2024https://github.com/getsentry/sentry-python/pull/2914#event-12266858588
https://github.com/szokeasaurusrex
szokeasaurusrexhttps://github.com/szokeasaurusrex
March 27, 2024 14:38https://github.com/getsentry/sentry-python/pull/2914#event-12266858788
Bump sentry-sdk from 1.42.0 to 1.44.0 MozillaFoundation/foundation.mozilla.org#12129 https://github.com/MozillaFoundation/foundation.mozilla.org/pull/12129
Bump sentry-sdk from 1.42.0 to 1.44.1 MozillaFoundation/foundation.mozilla.org#12159 https://github.com/MozillaFoundation/foundation.mozilla.org/pull/12159
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F2914
https://github.com/sentrivana
sentrivana https://github.com/sentrivana
https://github.com/asottile-sentry
asottile-sentry https://github.com/asottile-sentry
https://github.com/getsentry/sentry-python/pull/2914/files/03a3e2d4003efe33e12bb77cda81af0191922ab7
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/2914
Do not export types behind TYPE_CHECKING https://github.com/getsentry/sentry-python/issues/2909
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/2914
https://github.com/szokeasaurusrex
https://github.com/asottile-sentry
https://github.com/antonpirker
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.