René's URL Explorer Experiment


Title: Blamed location is wrong when return type annotation is violated · Issue #15 · skogsbaer/write-your-python-program · GitHub

Open Graph Title: Blamed location is wrong when return type annotation is violated · Issue #15 · skogsbaer/write-your-python-program

X Title: Blamed location is wrong when return type annotation is violated · Issue #15 · skogsbaer/write-your-python-program

Description: Given the following example: def foo(flag: bool) -> int: print('Hello World') if flag: return 1 else: return 'you stupid' foo(False) we get this error: untypy.error.UntypyTypeError given: 'you stupid' expected: value of type int context:...

Open Graph Description: Given the following example: def foo(flag: bool) -> int: print('Hello World') if flag: return 1 else: return 'you stupid' foo(False) we get this error: untypy.error.UntypyTypeError given: 'you stup...

X Description: Given the following example: def foo(flag: bool) -> int: print('Hello World') if flag: return 1 else: return 'you stupid' foo(False) we get this error: untypy.error.UntypyTypeErr...

Opengraph URL: https://github.com/skogsbaer/write-your-python-program/issues/15

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Blamed location is wrong when return type annotation is violated","articleBody":"Given the following example:\r\n\r\n```python\r\ndef foo(flag: bool) -> int:\r\n    print('Hello World')\r\n    if flag:\r\n        return 1\r\n    else:\r\n        return 'you stupid'\r\n\r\nfoo(False)\r\n```\r\n\r\nwe get this error:\r\n\r\n```\r\nuntypy.error.UntypyTypeError\r\ngiven:    'you stupid'\r\nexpected: value of type int\r\n\r\ncontext: foo(flag: bool) -> int\r\n                            ^^^\r\ndeclared at: test.py:1\r\n  1 | def foo(flag: bool) -> int:\r\n  2 |     print('Hello World')\r\n  3 |     if flag:\r\n  4 |         return 1\r\n  5 |     else:    | ...\r\n\r\ncaused by: test.py:1\r\n  1 | def foo(flag: bool) -> int:\r\n  2 |     print('Hello World')\r\n  3 |     if flag:\r\n  4 |         return 1\r\n  5 |     else:    | ...\r\n```\r\n\r\nI would expect that the line with `return 'you stupid'` is blamed for the error and therefor mentioned in the \"caused by\" part.","author":{"url":"https://github.com/skogsbaer","@type":"Person","name":"skogsbaer"},"datePublished":"2021-09-23T10:43:26Z","url":"https://github.com/skogsbaer/write-your-python-program/issues/15"}

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:70d57b7b-b780-051c-ea5b-86c6a5d68265
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8260:37820D:57E12C:77BC6F:6B00C851
html-safe-nonceb23348c41809860eba467afe048ebab09c17540dc4bbe289c4e488ee2a5f98c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjYwOjM3ODIwRDo1N0UxMkM6NzdCQzZGOjZCMDBDODUxIiwidmlzaXRvcl9pZCI6IjIwMTU4ODE1MzExMDg2NzM2MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca2b386a49d8a1d567609c5ce06a099dcc5d434265b221e4f93b6c3ca8ba119f1
hovercard-subject-tagissue:1005278373
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/skogsbaer/write-your-python-program/15/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6e5877b8015616ec14ad6e8b6b42dbb06e6dec04c21c753acedff963e0b85c4e/skogsbaer/write-your-python-program/issues/15
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6e5877b8015616ec14ad6e8b6b42dbb06e6dec04c21c753acedff963e0b85c4e/skogsbaer/write-your-python-program/issues/15
og:image:altGiven the following example: def foo(flag: bool) -> int: print('Hello World') if flag: return 1 else: return 'you stupid' foo(False) we get this error: untypy.error.UntypyTypeError given: 'you stup...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskogsbaer
hostnamegithub.com
expected-hostnamegithub.com
None98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4
turbo-cache-controlno-preview
go-importgithub.com/skogsbaer/write-your-python-program git https://github.com/skogsbaer/write-your-python-program.git
octolytics-dimension-user_id567524
octolytics-dimension-user_loginskogsbaer
octolytics-dimension-repository_id295649345
octolytics-dimension-repository_nwoskogsbaer/write-your-python-program
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id295649345
octolytics-dimension-repository_network_root_nwoskogsbaer/write-your-python-program
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
releaseef013399cf0a3c324bea644a685d7c1e0f06b5b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/skogsbaer/write-your-python-program/issues/15#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fskogsbaer%2Fwrite-your-python-program%2Fissues%2F15
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%2Fskogsbaer%2Fwrite-your-python-program%2Fissues%2F15
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=skogsbaer%2Fwrite-your-python-program
Reloadhttps://github.com/skogsbaer/write-your-python-program/issues/15
Reloadhttps://github.com/skogsbaer/write-your-python-program/issues/15
Reloadhttps://github.com/skogsbaer/write-your-python-program/issues/15
skogsbaerhttps://github.com/skogsbaer
write-your-python-programhttps://github.com/skogsbaer/write-your-python-program
Codehttps://github.com/skogsbaer/write-your-python-program
Issues9 (9)https://github.com/skogsbaer/write-your-python-program/issues
Pull requestshttps://github.com/skogsbaer/write-your-python-program/pulls
Actionshttps://github.com/skogsbaer/write-your-python-program/actions
Projectshttps://github.com/skogsbaer/write-your-python-program/projects
Security and qualityhttps://github.com/skogsbaer/write-your-python-program/security
Insightshttps://github.com/skogsbaer/write-your-python-program/pulse
https://github.com/skogsbaer/write-your-python-program
New issuehttps://github.com/login?return_to=https://github.com/skogsbaer/write-your-python-program/issues/15
New issuehttps://github.com/login?return_to=https://github.com/skogsbaer/write-your-python-program/issues/15
#53https://github.com/skogsbaer/write-your-python-program/pull/53
#29https://github.com/skogsbaer/write-your-python-program/pull/29
Blamed location is wrong when return type annotation is violatedhttps://github.com/skogsbaer/write-your-python-program/issues/15#top
#53https://github.com/skogsbaer/write-your-python-program/pull/53
#29https://github.com/skogsbaer/write-your-python-program/pull/29
importanthttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22important%22
improvementhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22improvement%22
size Mhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20M%22
size Shttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20S%22
tycheckhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22tycheck%22
https://github.com/skogsbaer
skogsbaerhttps://github.com/skogsbaer
on Sep 23, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#issue-1005278373
skogsbaerhttps://github.com/skogsbaer
importanthttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22important%22
tycheckhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22tycheck%22
improvementhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22improvement%22
on Sep 23, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5348882493
CodeSteakhttps://github.com/CodeSteak
size Lhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20L%22
on Sep 25, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5360258983
CodeSteakhttps://github.com/CodeSteak
on Sep 28, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5375990674
CodeSteakhttps://github.com/CodeSteak
on Sep 29, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5383453795
fix #22 use abspath on runner.https://github.com/skogsbaer/write-your-python-program/commit/4461873d218ae924a340b884d66c96b03642b84f
#22https://github.com/skogsbaer/write-your-python-program/pull/22
4461873https://github.com/skogsbaer/write-your-python-program/commit/4461873d218ae924a340b884d66c96b03642b84f
fix #26 use abspath on runner.https://github.com/skogsbaer/write-your-python-program/commit/ef9829c9ac017183b955ab092779989d58da03e1
#26https://github.com/skogsbaer/write-your-python-program/issues/26
ef9829chttps://github.com/skogsbaer/write-your-python-program/commit/ef9829c9ac017183b955ab092779989d58da03e1
add test for #15https://github.com/skogsbaer/write-your-python-program/commit/cf7e403b64133f0b71f8fe921de619ffdea67a18
#15https://github.com/skogsbaer/write-your-python-program/issues/15
cf7e403https://github.com/skogsbaer/write-your-python-program/commit/cf7e403b64133f0b71f8fe921de619ffdea67a18
CodeSteakhttps://github.com/CodeSteak
on Sep 29, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5383900479
skogsbaerhttps://github.com/skogsbaer
completedhttps://github.com/skogsbaer/write-your-python-program/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#29https://github.com/skogsbaer/write-your-python-program/pull/29
on Sep 30, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5386535418
skogsbaerhttps://github.com/skogsbaer
on Sep 30, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5386535580
Merge pull request #29 from skogsbaer/feature/15-locate-returnhttps://github.com/skogsbaer/write-your-python-program/commit/24d7f9a43f2b834daab4350534b21c3a88b141d8
#29https://github.com/skogsbaer/write-your-python-program/pull/29
24d7f9ahttps://github.com/skogsbaer/write-your-python-program/commit/24d7f9a43f2b834daab4350534b21c3a88b141d8
https://github.com/skogsbaer
skogsbaerhttps://github.com/skogsbaer
on Oct 11, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#issuecomment-940105578
skogsbaerhttps://github.com/skogsbaer
on Oct 11, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5443869827
https://github.com/CodeSteak
CodeSteakhttps://github.com/CodeSteak
on Oct 26, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#issuecomment-952115445
CodeSteakhttps://github.com/CodeSteak
size Mhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20M%22
size Shttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20S%22
size Lhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20L%22
on Oct 26, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5521999639
skogsbaerhttps://github.com/skogsbaer
completedhttps://github.com/skogsbaer/write-your-python-program/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#53https://github.com/skogsbaer/write-your-python-program/pull/53
on Nov 2, 2021https://github.com/skogsbaer/write-your-python-program/issues/15#event-5556400754
Sign up for freehttps://github.com/signup?return_to=https://github.com/skogsbaer/write-your-python-program/issues/15
Sign in to commenthttps://github.com/login?return_to=https://github.com/skogsbaer/write-your-python-program/issues/15
importanthttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22important%22
improvementhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22improvement%22
size Mhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20M%22
size Shttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22size%20S%22
tycheckhttps://github.com/skogsbaer/write-your-python-program/issues?q=state%3Aopen%20label%3A%22tycheck%22
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.