Title: [Regression: 0.470->0.501] Lots of new errors relating to "uninhabited" in Django-based app code · Issue #2978 · python/mypy · GitHub
Open Graph Title: [Regression: 0.470->0.501] Lots of new errors relating to "uninhabited" in Django-based app code · Issue #2978 · python/mypy
X Title: [Regression: 0.470->0.501] Lots of new errors relating to "uninhabited" in Django-based app code · Issue #2978 · python/mypy
Description: git clone https://github.com/inducer/relate cd relate ./run-mypy.sh used to work with no warnings in 0.470. Now, it spews this: course/content.py:877: error: Open Graph Description: git clone https://github.com/inducer/relate cd relate ./run-mypy.sh used to work with no warnings in 0.470. Now, it spews this: course/content.py:877: error: X Description: git clone https://github.com/inducer/relate cd relate ./run-mypy.sh used to work with no warnings in 0.470. Now, it spews this: course/content.py:877: error: <uninhabited> has no attribute &q...
Opengraph URL: https://github.com/python/mypy/issues/2978
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Regression: 0.470->0.501] Lots of new errors relating to \"uninhabited\" in Django-based app code","articleBody":"```\r\ngit clone https://github.com/inducer/relate\r\ncd relate\r\n./run-mypy.sh\r\n```\r\n\r\nused to work with no warnings in 0.470. Now, it spews this:\r\n\r\n```\r\ncourse/content.py:877: error: \u003cuninhabited> has no attribute \"id\"\r\ncourse/content.py:1445: error: \u003cuninhabited> has no attribute \"preview_git_commit_sha\"\r\ncourse/content.py:1446: error: \u003cuninhabited> has no attribute \"preview_git_commit_sha\"\r\ncourse/utils.py:179: error: \u003cuninhabited> has no attribute \"exam\"\r\ncourse/utils.py:533: error: \u003cuninhabited> has no attribute \"preview_git_commit_sha\"\r\ncourse/utils.py:534: error: \u003cuninhabited> has no attribute \"preview_git_commit_sha\"\r\ncourse/utils.py:583: error: \u003cuninhabited> has no attribute \"permissions\"\r\ncourse/enrollment.py:129: error: \u003cuninhabited> has no attribute \"roles\"\r\ncourse/enrollment.py:143: error: \u003cuninhabited> has no attribute \"permissions\"\r\ncourse/views.py:156: error: \u003cuninhabited> has no attribute \"has_permission\"\r\ncourse/flow.py:416: error: \u003cuninhabited> has no attribute \"user\"\r\ncourse/flow.py:633: error: \u003cuninhabited> has no attribute \"answer\"\r\ncourse/flow.py:830: error: \u003cuninhabited> has no attribute \"get_most_recent_grade\"\r\ncourse/flow.py:848: error: Unsupported left operand type for + (some union)\r\ncourse/flow.py:855: error: Unsupported left operand type for + (some union)\r\ncourse/flow.py:862: error: Unsupported left operand type for + (some union)\r\ncourse/flow.py:923: error: \u003cuninhabited> has no attribute \"is_submitted_answer\"\r\ncourse/flow.py:924: error: \u003cuninhabited> has no attribute \"save\"\r\ncourse/flow.py:1264: error: \u003cuninhabited> has no attribute \"get_most_recent_grade\"\r\n```\r\n\r\nFocusing on the first error:\r\n\r\nhttps://github.com/inducer/relate/blob/fed97182f4e8940bb032a224c5cbcd007a8bd722/course/content.py#L877\r\n\r\nit should be clear that `course` is an instance of `Course` (i.e. not None).","author":{"url":"https://github.com/inducer","@type":"Person","name":"inducer"},"datePublished":"2017-03-08T01:02:50Z","url":"https://github.com/python/mypy/issues/2978"}
react-profiling 0 react-import-map react,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-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:36b83cdf-fd28-b1d4-4857-52c726904e13 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 8D74:7F150:12DC030:18C0349:6B000637 html-safe-nonce ac4c9406f354b40f059078d83b2fd54d808027c708416b1a22603d46d5dcfc31 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDc0OjdGMTUwOjEyREMwMzA6MThDMDM0OTo2QjAwMDYzNyIsInZpc2l0b3JfaWQiOiIxMzA0NjQ3MTMxNzEzMjQyNjc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac dde9d8411b27bb9f094a354f396f67aa0bb55b189a9fef393a61cc745bfeaeca hovercard-subject-tag issue:212607345 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/2978/issue_layout twitter:image https://opengraph.githubassets.com/579eeeb058ad1f0ddc849fc55bfa2688867a66ba9ec7c81238c4d8afd16d4902/python/mypy/issues/2978 twitter:card summary_large_image og:image https://opengraph.githubassets.com/579eeeb058ad1f0ddc849fc55bfa2688867a66ba9ec7c81238c4d8afd16d4902/python/mypy/issues/2978 og:image:alt git clone https://github.com/inducer/relate cd relate ./run-mypy.sh used to work with no warnings in 0.470. Now, it spews this: course/content.py:877: error: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username inducer hostname github.com expected-hostname github.com None 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 turbo-cache-control no-preview go-import github.com/python/mypy git https://github.com/python/mypy.git octolytics-dimension-user_id 1525981 octolytics-dimension-user_login python octolytics-dimension-repository_id 7053637 octolytics-dimension-repository_nwo python/mypy octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 7053637 octolytics-dimension-repository_network_root_nwo python/mypy turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 16a11879678aaf97e2a42c33ee70830aa084fa37 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.