Title: async/await checks are too aggressive and even escape `type: ignore` · Issue #2959 · python/mypy · GitHub
Open Graph Title: async/await checks are too aggressive and even escape `type: ignore` · Issue #2959 · python/mypy
X Title: async/await checks are too aggressive and even escape `type: ignore` · Issue #2959 · python/mypy
Description: I happen to use a third-party library (Mandrill) that has various functions that take the async keyword: https://mandrillapp.com/api/docs/index.python.html The error is this, and it applies even if you add a type: ignore on the affected ...
Open Graph Description: I happen to use a third-party library (Mandrill) that has various functions that take the async keyword: https://mandrillapp.com/api/docs/index.python.html The error is this, and it applies even if...
X Description: I happen to use a third-party library (Mandrill) that has various functions that take the async keyword: https://mandrillapp.com/api/docs/index.python.html The error is this, and it applies even if...
Opengraph URL: https://github.com/python/mypy/issues/2959
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"async/await checks are too aggressive and even escape `type: ignore`","articleBody":"I happen to use a third-party library (Mandrill) that has various functions that take the `async` keyword:\r\n\r\nhttps://mandrillapp.com/api/docs/index.python.html\r\n\r\nThe error is this, and it applies even if you add a `type: ignore` on the affected line:\r\n`/tmp/foo.py:1: error: 'async' and 'await' will become reserved keywords in Python 3.7`\r\n\r\n```\r\ndef foo(async=True): \r\n pass \r\n \r\nfoo(async=False) # type: ignore \r\n```\r\n\r\nYou get the same thing with even this:\r\n```\r\nx = dict(async=False) # type: ignore \r\n```\r\n\r\nOther keywords don't have this problem (`x = dict(type=False)` works fine), so I think this is just a bug with this new friendly check for new keywords.\r\n\r\nI worked around this by passing `**{'async': False}` instead, but it's kinda absurd.","author":{"url":"https://github.com/timabbott","@type":"Person","name":"timabbott"},"datePublished":"2017-03-04T23:32:00Z","url":"https://github.com/python/mypy/issues/2959"}
| 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:5f741ffe-ec33-9aca-7919-58372444e21c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDFC:39DC4B:495B23:67283C:6B00742E |
| html-safe-nonce | 6d2159e20646ff3acef74009b18d6d72c4219bff0782586c509b647a7afaa873 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREZDOjM5REM0Qjo0OTVCMjM6NjcyODNDOjZCMDA3NDJFIiwidmlzaXRvcl9pZCI6IjIyMDE1NDkyNTIxNjgwMjEwMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6c32648edf1f516f7c24ae7060d7bd763fe41ce9f9b3c1561c479aaec1349ffb |
| hovercard-subject-tag | issue:211916573 |
| 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/2959/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82392db70255bc1c8fcb98492a337832cd68a5b0fc7248b4ff318827d16c38b5/python/mypy/issues/2959 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82392db70255bc1c8fcb98492a337832cd68a5b0fc7248b4ff318827d16c38b5/python/mypy/issues/2959 |
| og:image:alt | I happen to use a third-party library (Mandrill) that has various functions that take the async keyword: https://mandrillapp.com/api/docs/index.python.html The error is this, and it applies even if... |
| 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 | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| 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 | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width