Title: assertIsNotNone(foo) in tests is not treated the same as `assert foo is not None` · Issue #5088 · python/mypy · GitHub
Open Graph Title: assertIsNotNone(foo) in tests is not treated the same as `assert foo is not None` · Issue #5088 · python/mypy
X Title: assertIsNotNone(foo) in tests is not treated the same as `assert foo is not None` · Issue #5088 · python/mypy
Description: As part of Zulip's strict-optional effort, I had to convert a test that was using assertIsNotNone(foo) to use assert foo is not None in order to get mypy to pass. I think mypy should treat those two the same.
Open Graph Description: As part of Zulip's strict-optional effort, I had to convert a test that was using assertIsNotNone(foo) to use assert foo is not None in order to get mypy to pass. I think mypy should treat those tw...
X Description: As part of Zulip's strict-optional effort, I had to convert a test that was using assertIsNotNone(foo) to use assert foo is not None in order to get mypy to pass. I think mypy should treat thos...
Opengraph URL: https://github.com/python/mypy/issues/5088
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"assertIsNotNone(foo) in tests is not treated the same as `assert foo is not None`","articleBody":"As part of Zulip's strict-optional effort, I had to convert a test that was using `assertIsNotNone(foo)` to use `assert foo is not None` in order to get mypy to pass. I think mypy should treat those two the same.\r\n\r\n","author":{"url":"https://github.com/timabbott","@type":"Person","name":"timabbott"},"datePublished":"2018-05-20T22:27:00Z","url":"https://github.com/python/mypy/issues/5088"}
| 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:84f66e40-f714-dfe0-5f64-d02bbfd6b8de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A79A:1914F5:1475530:1AC4F7B:6B000AD6 |
| html-safe-nonce | 61418ad1360b5381dfa909f19c2667a3c6a59a4250da01446759fd4370ef801a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzlBOjE5MTRGNToxNDc1NTMwOjFBQzRGN0I6NkIwMDBBRDYiLCJ2aXNpdG9yX2lkIjoiMjA1NjA1NDEzNDA0OTYwNjM1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bfa1df4f4207db4792425ab3286885fddd273449c1fbf3f6ece49bf77fe446a8 |
| hovercard-subject-tag | issue:324748050 |
| 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/5088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a203deed9c355d6049ac8226dc2812dd504d5dc80a24b299ae3f61e540eccee4/python/mypy/issues/5088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a203deed9c355d6049ac8226dc2812dd504d5dc80a24b299ae3f61e540eccee4/python/mypy/issues/5088 |
| og:image:alt | As part of Zulip's strict-optional effort, I had to convert a test that was using assertIsNotNone(foo) to use assert foo is not None in order to get mypy to pass. I think mypy should treat those tw... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timabbott |
| 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 |
Links:
Viewport: width=device-width