Title: "
Open Graph Title: "
X Title: "
Description: mypy emits a nice " defined here" note when calling a function with unexpected keywords arguments. Unfortunately the note is omitted if the module the function is defined in has been loaded from the cache. This both eliminates a nice mes...
Open Graph Description: mypy emits a nice " defined here" note when calling a function with unexpected keywords arguments. Unfortunately the note is omitted if the module the function is defined in has been loaded from th...
X Description: mypy emits a nice " defined here" note when calling a function with unexpected keywords arguments. Unfortunately the note is omitted if the module the function is defined in has been load...
Opengraph URL: https://github.com/python/mypy/issues/4772
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"\u003cfunction> defined here\" notes omitted when function is loaded from cache","articleBody":"mypy emits a nice \"\u003cfunction> defined here\" note when calling a function with unexpected keywords arguments.\r\n\r\nUnfortunately the note is omitted if the module the function is defined in has been loaded from the cache.\r\nThis both eliminates a nice message (which we should add more of!) and causes annoying deviations between modes.\r\n\r\nThe following coarse-grained incremental test fails\r\n```\r\n[case testCachedUnexpectedKeywordArgument]\r\nimport a\r\n[file a.py]\r\nimport b\r\nb.lol(uhhhh=12) # tweak\r\n[file a.py.2]\r\nimport b\r\nb.lol(uhhhh=12)\r\n[file b.py]\r\ndef lol() -> None: pass\r\n[out]\r\ntmp/a.py:2: error: Unexpected keyword argument \"uhhhh\" for \"lol\"\r\ntmp/b.py:1: note: \"lol\" defined here\r\n[out2]\r\ntmp/a.py:2: error: Unexpected keyword argument \"uhhhh\" for \"lol\"\r\ntmp/b.py:1: note: \"lol\" defined here\r\n```\r\n\r\nAs well as this fine-grained incremental test:\r\n```\r\n[case testUnexpectedKeywordArgument]\r\nimport a\r\n[file a.py]\r\nimport b\r\n[file a.py.2]\r\nimport b\r\nb.lol(uhhhh=12)\r\n[file b.py]\r\ndef lol() -> None: pass\r\n[out]\r\n==\r\na.py:2: error: Unexpected keyword argument \"uhhhh\" for \"lol\"\r\nb.py:1: note: \"lol\" defined here\r\n```","author":{"url":"https://github.com/msullivan","@type":"Person","name":"msullivan"},"datePublished":"2018-03-21T00:20:48Z","url":"https://github.com/python/mypy/issues/4772"}
| 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:ae766aa4-f2dd-2b6e-0c2a-12cb04e59f2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B15A:1833B7:242B9F3:310AD2F:6B002FE5 |
| html-safe-nonce | ecacaa8ac7ae49e3940db3d2af9b9ec949015a459c2b16e679ee572af0ad0729 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTVBOjE4MzNCNzoyNDJCOUYzOjMxMEFEMkY6NkIwMDJGRTUiLCJ2aXNpdG9yX2lkIjoiMjkwMzk5ODkyMzAyNDY0MjAyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 154fc9d21eef16ea53d4765efa894ea659c785211a4923f04357c8ad47f4942d |
| hovercard-subject-tag | issue:307084226 |
| 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/4772/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1c52254bb5a59ce8421f23730f7eaf97b6e301b04529b0e658a23d30786c020/python/mypy/issues/4772 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1c52254bb5a59ce8421f23730f7eaf97b6e301b04529b0e658a23d30786c020/python/mypy/issues/4772 |
| og:image:alt | mypy emits a nice " defined here" note when calling a function with unexpected keywords arguments. Unfortunately the note is omitted if the module the function is defined in has been loaded from th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msullivan |
| 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