Title: mypy failing · Issue #434 · python/importlib_metadata · GitHub
Open Graph Title: mypy failing · Issue #434 · python/importlib_metadata
X Title: mypy failing · Issue #434 · python/importlib_metadata
Description: mypy is failing in the tests with the following error 435: error: Incompatible return value type (got "Message", expected "PackageMetadata") [return-value] 435: note: Following member(s) of "Message" have conflicts: 435: note: Expected: ...
Open Graph Description: mypy is failing in the tests with the following error 435: error: Incompatible return value type (got "Message", expected "PackageMetadata") [return-value] 435: note: Following member(s) of "Messag...
X Description: mypy is failing in the tests with the following error 435: error: Incompatible return value type (got "Message", expected "PackageMetadata") [return-value] 435: note: Following ...
Opengraph URL: https://github.com/python/importlib_metadata/issues/434
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy failing","articleBody":"mypy is failing in the tests with the following error\r\n\r\n```\r\n435: error: Incompatible return value type (got \"Message\", expected \"PackageMetadata\") [return-value]\r\n435: note: Following member(s) of \"Message\" have conflicts:\r\n435: note: Expected:\r\n435: note: def [_T] get_all(self, name: str, failobj: _T = ...) -> Union[List[Any], _T]\r\n435: note: Got:\r\n435: note: @overload\r\n435: note: def get_all(self, name: str, failobj: None = ...) -> Optional[List[Any]]\r\n435: note: @overload\r\n435: note: def [_T] get_all(self, name: str, failobj: _T) -> Union[List[Any], _T]\r\n```\r\n\r\nThe typeshed definitions changed in https://github.com/python/typeshed/commit/b5a26d1ca258a86a6f133dfabf58790553dc21cf, causing `PackageMetadata` to fall out of sync. I think the right option here is just to bring `PackageMetadata` back in sync with `email.message.Message`","author":{"url":"https://github.com/FFY00","@type":"Person","name":"FFY00"},"datePublished":"2023-03-10T02:56:44Z","url":"https://github.com/python/importlib_metadata/issues/434"}
| 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:ea85df61-9bab-acfb-e4c4-7ee211609e25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC8A:A4425:F5B91:14B6CF:6B0080D9 |
| html-safe-nonce | 9b42db270353323eddb16992df366d6fcb718a1bbefe02d6a9990f71d5073c75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzhBOkE0NDI1OkY1QjkxOjE0QjZDRjo2QjAwODBEOSIsInZpc2l0b3JfaWQiOiIyMzgyNDU2Mzc5OTM2ODk5Mjg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 810c93f46990841131f4dc4e84b44d29ec6ee23246e53206f0b9495ded63875e |
| hovercard-subject-tag | issue:1618279087 |
| 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/importlib_metadata/434/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bebbd5027f09a848a0eefde5ca9331958e4f12ed0ccb3a12f6c773dc2863b7a/python/importlib_metadata/issues/434 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bebbd5027f09a848a0eefde5ca9331958e4f12ed0ccb3a12f6c773dc2863b7a/python/importlib_metadata/issues/434 |
| og:image:alt | mypy is failing in the tests with the following error 435: error: Incompatible return value type (got "Message", expected "PackageMetadata") [return-value] 435: note: Following member(s) of "Messag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FFY00 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/importlib_metadata git https://github.com/python/importlib_metadata.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 306448340 |
| octolytics-dimension-repository_nwo | python/importlib_metadata |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 306448340 |
| octolytics-dimension-repository_network_root_nwo | python/importlib_metadata |
| 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 | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width