Title: if/else block parse problem · Issue #533 · python/mypy · GitHub
Open Graph Title: if/else block parse problem · Issue #533 · python/mypy
X Title: if/else block parse problem · Issue #533 · python/mypy
Description: Mypy complains about this code, even though it should be valid: if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 (this is from Python 3.2 Lib/urllib/request.py)
Open Graph Description: Mypy complains about this code, even though it should be valid: if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 (this is from Python 3.2 Lib/urllib/request.py)
X Description: Mypy complains about this code, even though it should be valid: if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 (this is from ...
Opengraph URL: https://github.com/python/mypy/issues/533
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"if/else block parse problem","articleBody":"Mypy complains about this code, even though it should be valid:\n\n``` python\nif type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1\nelse: cmd = 'TYPE ' + type; isdir = 0\n```\n\n(this is from Python 3.2 `Lib/urllib/request.py`)\n","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2014-12-18T16:47:04Z","url":"https://github.com/python/mypy/issues/533"}
| 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:67373824-76a3-36ef-9df2-fe14d832bab7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD40:C7694:6FFC7:9BCD9:6B00A762 |
| html-safe-nonce | fa408125074ddc3ebf5a2d7836ea9cfe6f96c8736d899691ff24e415c38bdae6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDQwOkM3Njk0OjZGRkM3OjlCQ0Q5OjZCMDBBNzYyIiwidmlzaXRvcl9pZCI6IjM1NDU2MjcyNDg0NzAwNDI0NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9b75202b0bc86ee31c375891391f086233d79b02b58884315f7985e76a45260 |
| hovercard-subject-tag | issue:52387734 |
| 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/533/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04bb4b2f1d04cc55336ccdca300945977d9e3ffa667ccc500cee52aba521ac3d/python/mypy/issues/533 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04bb4b2f1d04cc55336ccdca300945977d9e3ffa667ccc500cee52aba521ac3d/python/mypy/issues/533 |
| og:image:alt | Mypy complains about this code, even though it should be valid: if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 (this is from Python 3.2 Lib/urllib/request.py) |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JukkaL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| 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 | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width