Title: 1.7.0 Regression? No overload variant of "__or__" of "dict" matches argument type "Mapping[str, Any]" · Issue #16489 · python/mypy · GitHub
Open Graph Title: 1.7.0 Regression? No overload variant of "__or__" of "dict" matches argument type "Mapping[str, Any]" · Issue #16489 · python/mypy
X Title: 1.7.0 Regression? No overload variant of "__or__" of "dict" matches argument type "Mapping[str, Any]" · Issue #16489 · python/mypy
Description: Bug Report This raises no issues in 1.6.1, but does in 1.7 To Reproduce https://mypy-play.net/?mypy=1.7.0&python=3.11&gist=8ba136e1df27dd669f8a881052b6a3b4 from collections.abc import Mapping from typing import Any def make_plot(subplot_...
Open Graph Description: Bug Report This raises no issues in 1.6.1, but does in 1.7 To Reproduce https://mypy-play.net/?mypy=1.7.0&python=3.11&gist=8ba136e1df27dd669f8a881052b6a3b4 from collections.abc import Mapping from ...
X Description: Bug Report This raises no issues in 1.6.1, but does in 1.7 To Reproduce https://mypy-play.net/?mypy=1.7.0&python=3.11&gist=8ba136e1df27dd669f8a881052b6a3b4 from collections.abc import Mappi...
Opengraph URL: https://github.com/python/mypy/issues/16489
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"1.7.0 Regression? No overload variant of \"__or__\" of \"dict\" matches argument type \"Mapping[str, Any]\"","articleBody":"**Bug Report**\r\n\r\nThis raises no issues in 1.6.1, but does in 1.7\r\n\r\n**To Reproduce**\r\n\r\nhttps://mypy-play.net/?mypy=1.7.0&python=3.11&gist=8ba136e1df27dd669f8a881052b6a3b4\r\n\r\n```python\r\nfrom collections.abc import Mapping\r\nfrom typing import Any\r\n\r\n\r\ndef make_plot(subplot_kwargs: Mapping[str, Any]) -> None:\r\n subplot_kwargs = { # raises [operator]\r\n \"option1\": \"default1\",\r\n \"option2\": \"default2\",\r\n } | subplot_kwargs\r\n # plotfn(..., **subplot_kwargs)\r\n```\r\n\r\n```\r\nmain.py:6: error: No overload variant of \"__or__\" of \"dict\" matches argument type \"Mapping[str, Any]\" [operator]\r\nmain.py:6: note: Possible overload variants:\r\nmain.py:6: note: def __or__(self, dict[str, str], /) -> dict[str, str]\r\nmain.py:6: note: def [_T1, _T2] __or__(self, dict[_T1, _T2], /) -> dict[str | _T1, str | _T2]\r\n```\r\n","author":{"url":"https://github.com/randolf-scholz","@type":"Person","name":"randolf-scholz"},"datePublished":"2023-11-14T17:56:50Z","url":"https://github.com/python/mypy/issues/16489"}
| 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:353cee81-ec99-c8db-def3-487692cc77a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE3C:22FAD4:70D7D2:968A04:6B003849 |
| html-safe-nonce | 61351fb23c4f73a028aa352707d08b6522451fd07853a9bedc880e0360a2612b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTNDOjIyRkFENDo3MEQ3RDI6OTY4QTA0OjZCMDAzODQ5IiwidmlzaXRvcl9pZCI6IjcxNDAyMzY3ODg5NzQ0OTk5MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c3836cea5d27b746103766bbeb7be5c0ef8fc0c1be2130f8bbbee718e8e1d37 |
| hovercard-subject-tag | issue:1993263863 |
| 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/16489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4e46f136ca4e7661b3952ffb2398dd7bee515b8051327140d76e7d11f2dca98/python/mypy/issues/16489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4e46f136ca4e7661b3952ffb2398dd7bee515b8051327140d76e7d11f2dca98/python/mypy/issues/16489 |
| og:image:alt | Bug Report This raises no issues in 1.6.1, but does in 1.7 To Reproduce https://mypy-play.net/?mypy=1.7.0&python=3.11&gist=8ba136e1df27dd669f8a881052b6a3b4 from collections.abc import Mapping from ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | randolf-scholz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width